; LLVM IR from davidomanovic/CFD-FlowSolver :: src/Solver.ll (ZN6Solver5solveERK6MatrixRK6Vector)

; 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.Vector = type { i64, %"class.std::vector" }
%"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.Matrix = type { i64, i64, %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Solver5solveERK6MatrixRK6Vector(ptr dead_on_unwind noalias writable sret(%class.Vector) align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i1, align 1
  %9 = alloca %class.Matrix, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca %class.Vector, align 8
  %13 = alloca i64, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca i64, align 8
  %17 = alloca i64, align 8
  %18 = alloca double, align 8
  %19 = alloca i64, align 8
  %20 = alloca i32, align 4
  %21 = alloca i64, align 8
  store ptr %0, ptr %4, align 8
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = call noundef i64 @_ZNK6Matrix7getRowsEv(ptr noundef nonnull align 8 dereferenceable(40) %22)
  store i64 %23, ptr %7, align 8, !tbaa !9
  store i1 false, ptr %8, align 1
  %24 = load i64, ptr %7, align 8, !tbaa !9
  call void @_ZN6VectorC1Em(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %24)
  call void @llvm.lifetime.start.p0(i64 40, ptr %9) #7
  %25 = load ptr, ptr %5, align 8, !tbaa !5
  invoke void @_ZN6MatrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %9, ptr noundef nonnull align 8 dereferenceable(40) %25)
          to label %26 unwind label %34

26:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr %12) #7
  %27 = load ptr, ptr %6, align 8, !tbaa !5
  invoke void @_ZN6VectorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %27)
          to label %28 unwind label %38

28:                                               ; preds = %26
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  store i64 0, ptr %13, align 8, !tbaa !9
  br label %29

29:                                               ; preds = %151, %28
  %30 = load i64, ptr %13, align 8, !tbaa !9
  %31 = load i64, ptr %7, align 8, !tbaa !9
  %32 = icmp ult i64 %30, %31
  br i1 %32, label %42, label %33

33:                                               ; preds = %29
  store i32 2, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %155

34:                                               ; preds = %3
  %35 = landingpad { ptr, i32 }
          cleanup
  %36 = extractvalue { ptr, i32 } %35, 0
  store ptr %36, ptr %10, align 8
  %37 = extractvalue { ptr, i32 } %35, 1
  store i32 %37, ptr %11, align 4
  br label %219

38:                                               ; preds = %26
  %39 = landingpad { ptr, i32 }
          cleanup
  %40 = extractvalue { ptr, i32 } %39, 0
  store ptr %40, ptr %10, align 8
  %41 = extractvalue { ptr, i32 } %39, 1
  store i32 %41, ptr %11, align 4
  br label %218

42:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %43 = load i64, ptr %13, align 8, !tbaa !9
  %44 = load i64, ptr %13, align 8, !tbaa !9
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %43, i64 noundef %44)
          to label %46 unwind label %53

46:                                               ; preds = %42
  %47 = load double, ptr %45, align 8, !tbaa !11
  store double %47, ptr %15, align 8, !tbaa !11
  %48 = load double, ptr %15, align 8, !tbaa !11
  %49 = fcmp oeq double %48, 0.000000e+00
  br i1 %49, label %50, label %61

50:                                               ; preds = %46
  %51 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %51, ptr noundef @.str)
          to label %52 unwind label %57

52:                                               ; preds = %50
  invoke void @__cxa_throw(ptr %51, ptr @_ZTISt13runtime_error, ptr @_ZNSt13runtime_errorD1Ev) #8
          to label %227 unwind label %53

53:                                               ; preds = %83, %52, %42
  %54 = landingpad { ptr, i32 }
          cleanup
  %55 = extractvalue { ptr, i32 } %54, 0
  store ptr %55, ptr %10, align 8
  %56 = extractvalue { ptr, i32 } %54, 1
  store i32 %56, ptr %11, align 4
  br label %154

57:                                               ; preds = %50
  %58 = landingpad { ptr, i32 }
          cleanup
  %59 = extractvalue { ptr, i32 } %58, 0
  store ptr %59, ptr %10, align 8
  %60 = extractvalue { ptr, i32 } %58, 1
  store i32 %60, ptr %11, align 4
  call void @__cxa_free_exception(ptr %51) #7
  br label %154

61:                                               ; preds = %46
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %62 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %62, ptr %16, align 8, !tbaa !9
  br label %63

63:                                               ; preds = %76, %61
  %64 = load i64, ptr %16, align 8, !tbaa !9
  %65 = load i64, ptr %7, align 8, !tbaa !9
  %66 = icmp ult i64 %64, %65
  br i1 %66, label %68, label %67

67:                                               ; preds = %63
  store i32 5, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %83

68:                                               ; preds = %63
  %69 = load double, ptr %15, align 8, !tbaa !11
  %70 = load i64, ptr %13, align 8, !tbaa !9
  %71 = load i64, ptr %16, align 8, !tbaa !9
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %70, i64 noundef %71)
          to label %73 unwind label %79

73:                                               ; preds = %68
  %74 = load double, ptr %72, align 8, !tbaa !11
  %75 = fdiv double %74, %69
  store double %75, ptr %72, align 8, !tbaa !11
  br label %76

76:                                               ; preds = %73
  %77 = load i64, ptr %16, align 8, !tbaa !9
  %78 = add i64 %77, 1
  store i64 %78, ptr %16, align 8, !tbaa !9
  br label %63, !llvm.loop !13

79:                                               ; preds = %68
  %80 = landingpad { ptr, i32 }
          cleanup
  %81 = extractvalue { ptr, i32 } %80, 0
  store ptr %81, ptr %10, align 8
  %82 = extractvalue { ptr, i32 } %80, 1
  store i32 %82, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  br label %154

83:                                               ; preds = %67
  %84 = load double, ptr %15, align 8, !tbaa !11
  %85 = load i64, ptr %13, align 8, !tbaa !9
  %86 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %85)
          to label %87 unwind label %53

87:                                               ; preds = %83
  %88 = load double, ptr %86, align 8, !tbaa !11
  %89 = fdiv double %88, %84
  store double %89, ptr %86, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %90 = load i64, ptr %13, align 8, !tbaa !9
  %91 = add i64 %90, 1
  store i64 %91, ptr %17, align 8, !tbaa !9
  br label %92

92:                                               ; preds = %146, %87
  %93 = load i64, ptr %17, align 8, !tbaa !9
  %94 = load i64, ptr %7, align 8, !tbaa !9
  %95 = icmp ult i64 %93, %94
  br i1 %95, label %97, label %96

96:                                               ; preds = %92
  store i32 8, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %150

97:                                               ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  %98 = load i64, ptr %17, align 8, !tbaa !9
  %99 = load i64, ptr %13, align 8, !tbaa !9
  %100 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %98, i64 noundef %99)
          to label %101 unwind label %109

101:                                              ; preds = %97
  %102 = load double, ptr %100, align 8, !tbaa !11
  store double %102, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  %103 = load i64, ptr %13, align 8, !tbaa !9
  store i64 %103, ptr %19, align 8, !tbaa !9
  br label %104

104:                                              ; preds = %127, %101
  %105 = load i64, ptr %19, align 8, !tbaa !9
  %106 = load i64, ptr %7, align 8, !tbaa !9
  %107 = icmp ult i64 %105, %106
  br i1 %107, label %113, label %108

108:                                              ; preds = %104
  store i32 11, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %134

109:                                              ; preds = %138, %134, %97
  %110 = landingpad { ptr, i32 }
          cleanup
  %111 = extractvalue { ptr, i32 } %110, 0
  store ptr %111, ptr %10, align 8
  %112 = extractvalue { ptr, i32 } %110, 1
  store i32 %112, ptr %11, align 4
  br label %149

113:                                              ; preds = %104
  %114 = load double, ptr %18, align 8, !tbaa !11
  %115 = load i64, ptr %13, align 8, !tbaa !9
  %116 = load i64, ptr %19, align 8, !tbaa !9
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %115, i64 noundef %116)
          to label %118 unwind label %130

118:                                              ; preds = %113
  %119 = load double, ptr %117, align 8, !tbaa !11
  %120 = load i64, ptr %17, align 8, !tbaa !9
  %121 = load i64, ptr %19, align 8, !tbaa !9
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %120, i64 noundef %121)
          to label %123 unwind label %130

123:                                              ; preds = %118
  %124 = load double, ptr %122, align 8, !tbaa !11
  %125 = fneg double %114
  %126 = call double @llvm.fmuladd.f64(double %125, double %119, double %124)
  store double %126, ptr %122, align 8, !tbaa !11
  br label %127

127:                                              ; preds = %123
  %128 = load i64, ptr %19, align 8, !tbaa !9
  %129 = add i64 %128, 1
  store i64 %129, ptr %19, align 8, !tbaa !9
  br label %104, !llvm.loop !15

130:                                              ; preds = %118, %113
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %10, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %149

134:                                              ; preds = %108
  %135 = load double, ptr %18, align 8, !tbaa !11
  %136 = load i64, ptr %13, align 8, !tbaa !9
  %137 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %136)
          to label %138 unwind label %109

138:                                              ; preds = %134
  %139 = load double, ptr %137, align 8, !tbaa !11
  %140 = load i64, ptr %17, align 8, !tbaa !9
  %141 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %140)
          to label %142 unwind label %109

142:                                              ; preds = %138
  %143 = load double, ptr %141, align 8, !tbaa !11
  %144 = fneg double %135
  %145 = call double @llvm.fmuladd.f64(double %144, double %139, double %143)
  store double %145, ptr %141, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  br label %146

146:                                              ; preds = %142
  %147 = load i64, ptr %17, align 8, !tbaa !9
  %148 = add i64 %147, 1
  store i64 %148, ptr %17, align 8, !tbaa !9
  br label %92, !llvm.loop !16

149:                                              ; preds = %130, %109
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  br label %154

150:                                              ; preds = %96
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  br label %151

151:                                              ; preds = %150
  %152 = load i64, ptr %13, align 8, !tbaa !9
  %153 = add i64 %152, 1
  store i64 %153, ptr %13, align 8, !tbaa !9
  br label %29, !llvm.loop !17

154:                                              ; preds = %149, %79, %57, %53
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %217

155:                                              ; preds = %33
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  %156 = load i64, ptr %7, align 8, !tbaa !9
  %157 = sub i64 %156, 1
  %158 = trunc i64 %157 to i32
  store i32 %158, ptr %20, align 4, !tbaa !18
  br label %159

159:                                              ; preds = %211, %155
  %160 = load i32, ptr %20, align 4, !tbaa !18
  %161 = icmp sge i32 %160, 0
  br i1 %161, label %163, label %162

162:                                              ; preds = %159
  store i32 14, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %215

163:                                              ; preds = %159
  %164 = load i32, ptr %20, align 4, !tbaa !18
  %165 = sext i32 %164 to i64
  %166 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %12, i64 noundef %165)
          to label %167 unwind label %181

167:                                              ; preds = %163
  %168 = load double, ptr %166, align 8, !tbaa !11
  %169 = load i32, ptr %20, align 4, !tbaa !18
  %170 = sext i32 %169 to i64
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %170)
          to label %172 unwind label %181

172:                                              ; preds = %167
  store double %168, ptr %171, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  %173 = load i32, ptr %20, align 4, !tbaa !18
  %174 = add nsw i32 %173, 1
  %175 = sext i32 %174 to i64
  store i64 %175, ptr %21, align 8, !tbaa !9
  br label %176

176:                                              ; preds = %203, %172
  %177 = load i64, ptr %21, align 8, !tbaa !9
  %178 = load i64, ptr %7, align 8, !tbaa !9
  %179 = icmp ult i64 %177, %178
  br i1 %179, label %185, label %180

180:                                              ; preds = %176
  store i32 17, ptr %14, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %210

181:                                              ; preds = %167, %163
  %182 = landingpad { ptr, i32 }
          cleanup
  %183 = extractvalue { ptr, i32 } %182, 0
  store ptr %183, ptr %10, align 8
  %184 = extractvalue { ptr, i32 } %182, 1
  store i32 %184, ptr %11, align 4
  br label %214

185:                                              ; preds = %176
  %186 = load i32, ptr %20, align 4, !tbaa !18
  %187 = sext i32 %186 to i64
  %188 = load i64, ptr %21, align 8, !tbaa !9
  %189 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40) %9, i64 noundef %187, i64 noundef %188)
          to label %190 unwind label %206

190:                                              ; preds = %185
  %191 = load double, ptr %189, align 8, !tbaa !11
  %192 = load i64, ptr %21, align 8, !tbaa !9
  %193 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %192)
          to label %194 unwind label %206

194:                                              ; preds = %190
  %195 = load double, ptr %193, align 8, !tbaa !11
  %196 = load i32, ptr %20, align 4, !tbaa !18
  %197 = sext i32 %196 to i64
  %198 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %197)
          to label %199 unwind label %206

199:                                              ; preds = %194
  %200 = load double, ptr %198, align 8, !tbaa !11
  %201 = fneg double %191
  %202 = call double @llvm.fmuladd.f64(double %201, double %195, double %200)
  store double %202, ptr %198, align 8, !tbaa !11
  br label %203

203:                                              ; preds = %199
  %204 = load i64, ptr %21, align 8, !tbaa !9
  %205 = add i64 %204, 1
  store i64 %205, ptr %21, align 8, !tbaa !9
  br label %176, !llvm.loop !20

206:                                              ; preds = %194, %190, %185
  %207 = landingpad { ptr, i32 }
          cleanup
  %208 = extractvalue { ptr, i32 } %207, 0
  store ptr %208, ptr %10, align 8
  %209 = extractvalue { ptr, i32 } %207, 1
  store i32 %209, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  br label %214

210:                                              ; preds = %180
  br label %211

211:                                              ; preds = %210
  %212 = load i32, ptr %20, align 4, !tbaa !18
  %213 = add nsw i32 %212, -1
  store i32 %213, ptr %20, align 4, !tbaa !18
  br label %159, !llvm.loop !21

214:                                              ; preds = %206, %181
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %217

215:                                              ; preds = %162
  store i1 true, ptr %8, align 1
  store i32 1, ptr %14, align 4
  call void @_ZN6VectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @_ZN6MatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  %216 = load i1, ptr %8, align 1
  br i1 %216, label %221, label %220

217:                                              ; preds = %214, %154
  call void @_ZN6VectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #7
  br label %218

218:                                              ; preds = %217, %38
  call void @llvm.lifetime.end.p0(i64 32, ptr %12) #7
  call void @_ZN6MatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %9) #7
  br label %219

219:                                              ; preds = %218, %34
  call void @llvm.lifetime.end.p0(i64 40, ptr %9) #7
  call void @_ZN6VectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %222

220:                                              ; preds = %215
  call void @_ZN6VectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  br label %221

221:                                              ; preds = %220, %215
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  ret void

222:                                              ; preds = %219
  %223 = load ptr, ptr %10, align 8
  %224 = load i32, ptr %11, align 4
  %225 = insertvalue { ptr, i32 } poison, ptr %223, 0
  %226 = insertvalue { ptr, i32 } %225, i32 %224, 1
  resume { ptr, i32 } %226

227:                                              ; preds = %52
  unreachable
}

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

declare noundef i64 @_ZNK6Matrix7getRowsEv(ptr noundef nonnull align 8 dereferenceable(40)) #2

declare void @_ZN6VectorC1Em(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6MatrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6VectorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef) #2

declare ptr @__cxa_allocate_exception(i64)

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

declare void @__cxa_free_exception(ptr)

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

declare void @__cxa_throw(ptr, ptr, ptr)

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6MatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 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 = { "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
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 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"long", !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 = !{!19, !19, i64 0}
!19 = !{!"int", !7, i64 0}
!20 = distinct !{!20, !14}
!21 = distinct !{!21, !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.Vector = type { i64, %"class.std::vector" }
%"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.Matrix = type { i64, i64, %"class.std::vector.0" }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl" = type { %"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" }
%"struct.std::_Vector_base<std::vector<double>, std::allocator<std::vector<double>>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Solver5solveERK6MatrixRK6Vector(ptr dead_on_unwind noalias writable sret(%class.Vector) align 8 %0, ptr noundef nonnull align 8 dereferenceable(40) %1, ptr noundef nonnull align 8 dereferenceable(32) %2) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %4 = alloca %class.Matrix, align 8
  %5 = alloca %class.Vector, align 8
  %6 = tail call noundef i64 @_ZNK6Matrix7getRowsEv(ptr noundef nonnull align 8 dereferenceable(40) %1)
  tail call void @_ZN6VectorC1Em(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %6)
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %4) #7
  invoke void @_ZN6MatrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40) %4, ptr noundef nonnull align 8 dereferenceable(40) %1)
          to label %7 unwind label %12

7:                                                ; preds = %3
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %5) #7
  invoke void @_ZN6VectorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32) %5, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %.preheader76 unwind label %14

.preheader76:                                     ; preds = %7
  %.not = icmp eq i64 %6, 0
  br i1 %.not, label %._crit_edge100, label %.lr.ph90

.loopexit75:                                      ; preds = %45, %34
  %exitcond.not = icmp eq i64 %37, %6
  br i1 %exitcond.not, label %._crit_edge91, label %.lr.ph90, !llvm.loop !5

._crit_edge91:                                    ; preds = %.loopexit75
  %8 = trunc i64 %6 to i32
  %.05295 = add i32 %8, -1
  %9 = icmp sgt i32 %.05295, -1
  br i1 %9, label %.lr.ph99.preheader, label %._crit_edge100

.lr.ph99.preheader:                               ; preds = %._crit_edge91
  %10 = zext nneg i32 %.05295 to i64
  %11 = and i64 %6, 4294967295
  br label %.lr.ph99

12:                                               ; preds = %3
  %13 = landingpad { ptr, i32 }
          cleanup
  br label %89

14:                                               ; preds = %7
  %15 = landingpad { ptr, i32 }
          cleanup
  br label %88

.lr.ph90:                                         ; preds = %.preheader76, %.loopexit75
  %.05789 = phi i64 [ %37, %.loopexit75 ], [ 0, %.preheader76 ]
  %16 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %.05789, i64 noundef %.05789)
          to label %17 unwind label %.loopexit77

17:                                               ; preds = %.lr.ph90
  %18 = load double, ptr %16, align 8, !tbaa !7
  %19 = fcmp oeq double %18, 0.000000e+00
  br i1 %19, label %20, label %.lr.ph

20:                                               ; preds = %17
  %21 = call ptr @__cxa_allocate_exception(i64 16) #7
  invoke void @_ZNSt13runtime_errorC1EPKc(ptr noundef nonnull align 8 dereferenceable(16) %21, ptr noundef nonnull @.str)
          to label %22 unwind label %23

22:                                               ; preds = %20
  invoke void @__cxa_throw(ptr nonnull %21, ptr nonnull @_ZTISt13runtime_error, ptr nonnull @_ZNSt13runtime_errorD1Ev) #8
          to label %90 unwind label %.loopexit.split-lp

.loopexit77:                                      ; preds = %.lr.ph90, %._crit_edge
  %lpad.loopexit = landingpad { ptr, i32 }
          cleanup
  br label %87

.loopexit.split-lp:                               ; preds = %22
  %lpad.loopexit.split-lp = landingpad { ptr, i32 }
          cleanup
  br label %87

23:                                               ; preds = %20
  %24 = landingpad { ptr, i32 }
          cleanup
  call void @__cxa_free_exception(ptr %21) #7
  br label %87

._crit_edge:                                      ; preds = %27
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %.05789)
          to label %34 unwind label %.loopexit77

.lr.ph:                                           ; preds = %17, %27
  %.05578 = phi i64 [ %30, %27 ], [ %.05789, %17 ]
  %26 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %.05789, i64 noundef %.05578)
          to label %27 unwind label %32

27:                                               ; preds = %.lr.ph
  %28 = load double, ptr %26, align 8, !tbaa !7
  %29 = fdiv double %28, %18
  store double %29, ptr %26, align 8, !tbaa !7
  %30 = add nuw i64 %.05578, 1
  %31 = icmp ult i64 %30, %6
  br i1 %31, label %.lr.ph, label %._crit_edge, !llvm.loop !11

32:                                               ; preds = %.lr.ph
  %33 = landingpad { ptr, i32 }
          cleanup
  br label %87

34:                                               ; preds = %._crit_edge
  %35 = load double, ptr %25, align 8, !tbaa !7
  %36 = fdiv double %35, %18
  store double %36, ptr %25, align 8, !tbaa !7
  %37 = add nuw i64 %.05789, 1
  %38 = icmp ult i64 %37, %6
  br i1 %38, label %.lr.ph85.split.us, label %.loopexit75

.lr.ph85.split.us:                                ; preds = %34, %45
  %.05483.us = phi i64 [ %48, %45 ], [ %37, %34 ]
  %39 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %.05483.us, i64 noundef %.05789)
          to label %.lr.ph81.us unwind label %.split.us

.lr.ph81.us:                                      ; preds = %.lr.ph85.split.us
  %40 = load double, ptr %39, align 8, !tbaa !7
  %41 = fneg double %40
  br label %50

42:                                               ; preds = %._crit_edge82.us
  %43 = load double, ptr %60, align 8, !tbaa !7
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %.05483.us)
          to label %45 unwind label %.split.us

45:                                               ; preds = %42
  %46 = load double, ptr %44, align 8, !tbaa !7
  %47 = call double @llvm.fmuladd.f64(double %41, double %43, double %46)
  store double %47, ptr %44, align 8, !tbaa !7
  %48 = add nuw i64 %.05483.us, 1
  %49 = icmp ult i64 %48, %6
  br i1 %49, label %.lr.ph85.split.us, label %.loopexit75, !llvm.loop !12

50:                                               ; preds = %.lr.ph81.us, %55
  %.05379.us = phi i64 [ %.05789, %.lr.ph81.us ], [ %58, %55 ]
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %.05789, i64 noundef %.05379.us)
          to label %52 unwind label %.split87.us

52:                                               ; preds = %50
  %53 = load double, ptr %51, align 8, !tbaa !7
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %.05483.us, i64 noundef %.05379.us)
          to label %55 unwind label %.split87.us

55:                                               ; preds = %52
  %56 = load double, ptr %54, align 8, !tbaa !7
  %57 = call double @llvm.fmuladd.f64(double %41, double %53, double %56)
  store double %57, ptr %54, align 8, !tbaa !7
  %58 = add nuw i64 %.05379.us, 1
  %59 = icmp ult i64 %58, %6
  br i1 %59, label %50, label %._crit_edge82.us, !llvm.loop !13

._crit_edge82.us:                                 ; preds = %55
  %60 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %.05789)
          to label %42 unwind label %.split.us

.split.us:                                        ; preds = %42, %._crit_edge82.us, %.lr.ph85.split.us
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %87

.split87.us:                                      ; preds = %52, %50
  %62 = landingpad { ptr, i32 }
          cleanup
  br label %87

.loopexit:                                        ; preds = %79, %68
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %63 = icmp sgt i64 %indvars.iv, 0
  %indvars.iv.next103 = add nsw i64 %indvars.iv102, -1
  br i1 %63, label %.lr.ph99, label %._crit_edge100, !llvm.loop !14

._crit_edge100:                                   ; preds = %.loopexit, %.preheader76, %._crit_edge91
  call void @_ZN6VectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  call void @_ZN6MatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  ret void

.lr.ph99:                                         ; preds = %.lr.ph99.preheader, %.loopexit
  %indvars.iv102 = phi i64 [ %11, %.lr.ph99.preheader ], [ %indvars.iv.next103, %.loopexit ]
  %indvars.iv = phi i64 [ %10, %.lr.ph99.preheader ], [ %indvars.iv.next, %.loopexit ]
  %64 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %5, i64 noundef %indvars.iv)
          to label %65 unwind label %70

65:                                               ; preds = %.lr.ph99
  %66 = load double, ptr %64, align 8, !tbaa !7
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %indvars.iv)
          to label %68 unwind label %70

68:                                               ; preds = %65
  store double %66, ptr %67, align 8, !tbaa !7
  %69 = icmp ugt i64 %6, %indvars.iv102
  br i1 %69, label %.lr.ph94, label %.loopexit

70:                                               ; preds = %65, %.lr.ph99
  %71 = landingpad { ptr, i32 }
          cleanup
  br label %87

.lr.ph94:                                         ; preds = %68, %79
  %.092 = phi i64 [ %83, %79 ], [ %indvars.iv102, %68 ]
  %72 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40) %4, i64 noundef %indvars.iv, i64 noundef %.092)
          to label %73 unwind label %85

73:                                               ; preds = %.lr.ph94
  %74 = load double, ptr %72, align 8, !tbaa !7
  %75 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %.092)
          to label %76 unwind label %85

76:                                               ; preds = %73
  %77 = load double, ptr %75, align 8, !tbaa !7
  %78 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32) %0, i64 noundef %indvars.iv)
          to label %79 unwind label %85

79:                                               ; preds = %76
  %80 = load double, ptr %78, align 8, !tbaa !7
  %81 = fneg double %74
  %82 = call double @llvm.fmuladd.f64(double %81, double %77, double %80)
  store double %82, ptr %78, align 8, !tbaa !7
  %83 = add nuw i64 %.092, 1
  %84 = icmp ult i64 %83, %6
  br i1 %84, label %.lr.ph94, label %.loopexit, !llvm.loop !15

85:                                               ; preds = %76, %73, %.lr.ph94
  %86 = landingpad { ptr, i32 }
          cleanup
  br label %87

87:                                               ; preds = %.split.us, %.loopexit77, %.loopexit.split-lp, %70, %85, %23, %32, %.split87.us
  %.pn70.pn = phi { ptr, i32 } [ %24, %23 ], [ %33, %32 ], [ %62, %.split87.us ], [ %86, %85 ], [ %71, %70 ], [ %lpad.loopexit, %.loopexit77 ], [ %lpad.loopexit.split-lp, %.loopexit.split-lp ], [ %61, %.split.us ]
  call void @_ZN6VectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %5) #7
  br label %88

88:                                               ; preds = %87, %14
  %.pn70.pn.pn = phi { ptr, i32 } [ %.pn70.pn, %87 ], [ %15, %14 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %5) #7
  call void @_ZN6MatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #7
  br label %89

89:                                               ; preds = %88, %12
  %.pn70.pn.pn.pn = phi { ptr, i32 } [ %.pn70.pn.pn, %88 ], [ %13, %12 ]
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %4) #7
  call void @_ZN6VectorD2Ev(ptr noundef nonnull align 8 dereferenceable(32) %0) #7
  resume { ptr, i32 } %.pn70.pn.pn.pn

90:                                               ; preds = %22
  unreachable
}

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

declare noundef i64 @_ZNK6Matrix7getRowsEv(ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #2

declare void @_ZN6VectorC1Em(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) unnamed_addr #2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6MatrixC2ERKS_(ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN6VectorC2ERKS_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #3 align 2

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixclEmm(ptr noundef nonnull align 8 dereferenceable(40), i64 noundef, i64 noundef) local_unnamed_addr #2

declare ptr @__cxa_allocate_exception(i64) local_unnamed_addr

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

declare void @__cxa_free_exception(ptr) local_unnamed_addr

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZN6VectorixEm(ptr noundef nonnull align 8 dereferenceable(32), i64 noundef) local_unnamed_addr #2

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN6MatrixD2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #6 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 = { "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 "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { nounwind }
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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = distinct !{!11, !6}
!12 = distinct !{!12, !6}
!13 = distinct !{!13, !6}
!14 = distinct !{!14, !6}
!15 = distinct !{!15, !6}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass