; LLVM IR from cfd-rg-solver/FVM-RG-Solver :: src/riemannsolver.ll (ZN10HLLESolver11computeFluxEP16SystemOfEquation)

; 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::initializer_list" = type { ptr, i64 }
%struct.SystemOfEquation = type { ptr, i64, i64, i64, i64, i64, i64, %struct.Mixture, ptr, ptr, ptr, ptr, %struct.solverParams, i32, %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0", %"class.std::vector.0" }
%struct.Mixture = type <{ %"class.std::vector", i32, [4 x i8] }>
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<MixtureComponent, std::allocator<MixtureComponent>>::_Vector_impl" }
%"struct.std::_Vector_base<MixtureComponent, std::allocator<MixtureComponent>>::_Vector_impl" = type { %"struct.std::_Vector_base<MixtureComponent, std::allocator<MixtureComponent>>::_Vector_impl_data" }
%"struct.std::_Vector_base<MixtureComponent, std::allocator<MixtureComponent>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.solverParams = type { i32, double, double, double, double, double, i32, i32, i32, i32, i32, i32 }
%"class.std::vector.0" = type { %"struct.std::_Vector_base.1" }
%"struct.std::_Vector_base.1" = type { %"struct.std::_Vector_base<Matrix, std::allocator<Matrix>>::_Vector_impl" }
%"struct.std::_Vector_base<Matrix, std::allocator<Matrix>>::_Vector_impl" = type { %"struct.std::_Vector_base<Matrix, std::allocator<Matrix>>::_Vector_impl_data" }
%"struct.std::_Vector_base<Matrix, std::allocator<Matrix>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%struct.RiemannSolver = type { ptr, double, %struct.solverParams }

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13RiemannSolver13toMaxVelocityEd(ptr noundef nonnull align 8 dereferenceable(88), double noundef) #0 align 2

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

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

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3minIdET_St16initializer_listIS0_E(ptr, i64) #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3maxIdET_St16initializer_listIS0_E(ptr, i64) #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10HLLESolver11computeFluxEP16SystemOfEquation(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1) unnamed_addr #6 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca double, align 8
  %8 = alloca double, align 8
  %9 = alloca double, align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca double, align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca double, align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  %26 = alloca double, align 8
  %27 = alloca %"class.std::initializer_list", align 8
  %28 = alloca [2 x double], align 8
  %29 = alloca %"class.std::initializer_list", align 8
  %30 = alloca [2 x double], align 8
  %31 = alloca double, align 8
  %32 = alloca double, align 8
  %33 = alloca %"class.std::initializer_list", align 8
  %34 = alloca [2 x double], align 8
  %35 = alloca %"class.std::initializer_list", align 8
  %36 = alloca [2 x double], align 8
  %37 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %38 = load ptr, ptr %3, align 8
  call void @_ZN13RiemannSolver13toMaxVelocityEd(ptr noundef nonnull align 8 dereferenceable(88) %38, double noundef -1.000000e+00)
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #7
  store i32 0, ptr %5, align 4, !tbaa !9
  br label %39

39:                                               ; preds = %343, %2
  %40 = load i32, ptr %5, align 4, !tbaa !9
  %41 = sext i32 %40 to i64
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = getelementptr inbounds %struct.SystemOfEquation, ptr %42, i32 0, i32 1
  %44 = load i64, ptr %43, align 8, !tbaa !11
  %45 = sub i64 %44, 1
  %46 = icmp ult i64 %41, %45
  br i1 %46, label %48, label %47

47:                                               ; preds = %39
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  br label %346

48:                                               ; preds = %39
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %26) #7
  %49 = load ptr, ptr %4, align 8, !tbaa !5
  %50 = load i32, ptr %5, align 4, !tbaa !9
  %51 = sext i32 %50 to i64
  %52 = load ptr, ptr %49, align 8, !tbaa !26
  %53 = getelementptr inbounds ptr, ptr %52, i64 5
  %54 = load ptr, ptr %53, align 8
  %55 = call noundef double %54(ptr noundef nonnull align 8 dereferenceable(296) %49, i64 noundef %51)
  store double %55, ptr %11, align 8, !tbaa !28
  %56 = load ptr, ptr %4, align 8, !tbaa !5
  %57 = load i32, ptr %5, align 4, !tbaa !9
  %58 = add nsw i32 %57, 1
  %59 = sext i32 %58 to i64
  %60 = load ptr, ptr %56, align 8, !tbaa !26
  %61 = getelementptr inbounds ptr, ptr %60, i64 5
  %62 = load ptr, ptr %61, align 8
  %63 = call noundef double %62(ptr noundef nonnull align 8 dereferenceable(296) %56, i64 noundef %59)
  store double %63, ptr %12, align 8, !tbaa !28
  %64 = load ptr, ptr %4, align 8, !tbaa !5
  %65 = load i32, ptr %5, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = load ptr, ptr %64, align 8, !tbaa !26
  %68 = getelementptr inbounds ptr, ptr %67, i64 4
  %69 = load ptr, ptr %68, align 8
  %70 = call noundef double %69(ptr noundef nonnull align 8 dereferenceable(296) %64, i64 noundef %66)
  store double %70, ptr %13, align 8, !tbaa !28
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = load i32, ptr %5, align 4, !tbaa !9
  %73 = add nsw i32 %72, 1
  %74 = sext i32 %73 to i64
  %75 = load ptr, ptr %71, align 8, !tbaa !26
  %76 = getelementptr inbounds ptr, ptr %75, i64 4
  %77 = load ptr, ptr %76, align 8
  %78 = call noundef double %77(ptr noundef nonnull align 8 dereferenceable(296) %71, i64 noundef %74)
  store double %78, ptr %14, align 8, !tbaa !28
  %79 = load double, ptr %11, align 8, !tbaa !28
  %80 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %79, i32 noundef 2)
  %81 = load double, ptr %13, align 8, !tbaa !28
  %82 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %81, i32 noundef 2)
  %83 = fadd double %80, %82
  %84 = call double @sqrt(double noundef %83) #7
  store double %84, ptr %15, align 8, !tbaa !28
  %85 = load double, ptr %12, align 8, !tbaa !28
  %86 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %85, i32 noundef 2)
  %87 = load double, ptr %14, align 8, !tbaa !28
  %88 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %87, i32 noundef 2)
  %89 = fadd double %86, %88
  %90 = call double @sqrt(double noundef %89) #7
  store double %90, ptr %16, align 8, !tbaa !28
  %91 = load ptr, ptr %4, align 8, !tbaa !5
  %92 = load i32, ptr %5, align 4, !tbaa !9
  %93 = sext i32 %92 to i64
  %94 = load ptr, ptr %91, align 8, !tbaa !26
  %95 = getelementptr inbounds ptr, ptr %94, i64 6
  %96 = load ptr, ptr %95, align 8
  %97 = call noundef double %96(ptr noundef nonnull align 8 dereferenceable(296) %91, i64 noundef %93)
  %98 = load double, ptr %15, align 8, !tbaa !28
  %99 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %98, i32 noundef 2)
  %100 = fsub double %97, %99
  %101 = load ptr, ptr %4, align 8, !tbaa !5
  %102 = load i32, ptr %5, align 4, !tbaa !9
  %103 = sext i32 %102 to i64
  %104 = load ptr, ptr %101, align 8, !tbaa !26
  %105 = getelementptr inbounds ptr, ptr %104, i64 0
  %106 = load ptr, ptr %105, align 8
  %107 = call noundef double %106(ptr noundef nonnull align 8 dereferenceable(296) %101, i64 noundef %103)
  %108 = load ptr, ptr %4, align 8, !tbaa !5
  %109 = load i32, ptr %5, align 4, !tbaa !9
  %110 = sext i32 %109 to i64
  %111 = load ptr, ptr %108, align 8, !tbaa !26
  %112 = getelementptr inbounds ptr, ptr %111, i64 1
  %113 = load ptr, ptr %112, align 8
  %114 = call noundef double %113(ptr noundef nonnull align 8 dereferenceable(296) %108, i64 noundef %110)
  %115 = fdiv double %107, %114
  %116 = fadd double %100, %115
  store double %116, ptr %7, align 8, !tbaa !28
  %117 = load ptr, ptr %4, align 8, !tbaa !5
  %118 = load i32, ptr %5, align 4, !tbaa !9
  %119 = add nsw i32 %118, 1
  %120 = sext i32 %119 to i64
  %121 = load ptr, ptr %117, align 8, !tbaa !26
  %122 = getelementptr inbounds ptr, ptr %121, i64 6
  %123 = load ptr, ptr %122, align 8
  %124 = call noundef double %123(ptr noundef nonnull align 8 dereferenceable(296) %117, i64 noundef %120)
  %125 = load double, ptr %16, align 8, !tbaa !28
  %126 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %125, i32 noundef 2)
  %127 = fsub double %124, %126
  %128 = load ptr, ptr %4, align 8, !tbaa !5
  %129 = load i32, ptr %5, align 4, !tbaa !9
  %130 = add nsw i32 %129, 1
  %131 = sext i32 %130 to i64
  %132 = load ptr, ptr %128, align 8, !tbaa !26
  %133 = getelementptr inbounds ptr, ptr %132, i64 0
  %134 = load ptr, ptr %133, align 8
  %135 = call noundef double %134(ptr noundef nonnull align 8 dereferenceable(296) %128, i64 noundef %131)
  %136 = load ptr, ptr %4, align 8, !tbaa !5
  %137 = load i32, ptr %5, align 4, !tbaa !9
  %138 = add nsw i32 %137, 1
  %139 = sext i32 %138 to i64
  %140 = load ptr, ptr %136, align 8, !tbaa !26
  %141 = getelementptr inbounds ptr, ptr %140, i64 1
  %142 = load ptr, ptr %141, align 8
  %143 = call noundef double %142(ptr noundef nonnull align 8 dereferenceable(296) %136, i64 noundef %139)
  %144 = fdiv double %135, %143
  %145 = fadd double %127, %144
  store double %145, ptr %8, align 8, !tbaa !28
  %146 = getelementptr inbounds %struct.RiemannSolver, ptr %38, i32 0, i32 2
  %147 = getelementptr inbounds %struct.solverParams, ptr %146, i32 0, i32 3
  %148 = load double, ptr %147, align 8, !tbaa !29
  %149 = fsub double %148, 1.000000e+00
  %150 = load double, ptr %7, align 8, !tbaa !28
  %151 = load double, ptr %15, align 8, !tbaa !28
  %152 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %151, i32 noundef 2)
  %153 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %152, double %150)
  %154 = fmul double %149, %153
  %155 = call double @sqrt(double noundef %154) #7
  store double %155, ptr %9, align 8, !tbaa !28
  %156 = getelementptr inbounds %struct.RiemannSolver, ptr %38, i32 0, i32 2
  %157 = getelementptr inbounds %struct.solverParams, ptr %156, i32 0, i32 3
  %158 = load double, ptr %157, align 8, !tbaa !29
  %159 = fsub double %158, 1.000000e+00
  %160 = load double, ptr %8, align 8, !tbaa !28
  %161 = load double, ptr %16, align 8, !tbaa !28
  %162 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %161, i32 noundef 2)
  %163 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %162, double %160)
  %164 = fmul double %159, %163
  %165 = call double @sqrt(double noundef %164) #7
  store double %165, ptr %10, align 8, !tbaa !28
  %166 = load ptr, ptr %4, align 8, !tbaa !5
  %167 = load i32, ptr %5, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = load ptr, ptr %166, align 8, !tbaa !26
  %170 = getelementptr inbounds ptr, ptr %169, i64 1
  %171 = load ptr, ptr %170, align 8
  %172 = call noundef double %171(ptr noundef nonnull align 8 dereferenceable(296) %166, i64 noundef %168)
  %173 = call double @sqrt(double noundef %172) #7
  store double %173, ptr %17, align 8, !tbaa !28
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = load i32, ptr %5, align 4, !tbaa !9
  %176 = add nsw i32 %175, 1
  %177 = sext i32 %176 to i64
  %178 = load ptr, ptr %174, align 8, !tbaa !26
  %179 = getelementptr inbounds ptr, ptr %178, i64 1
  %180 = load ptr, ptr %179, align 8
  %181 = call noundef double %180(ptr noundef nonnull align 8 dereferenceable(296) %174, i64 noundef %177)
  %182 = call double @sqrt(double noundef %181) #7
  store double %182, ptr %18, align 8, !tbaa !28
  %183 = load double, ptr %17, align 8, !tbaa !28
  %184 = load double, ptr %11, align 8, !tbaa !28
  %185 = load double, ptr %18, align 8, !tbaa !28
  %186 = load double, ptr %12, align 8, !tbaa !28
  %187 = fmul double %185, %186
  %188 = call double @llvm.fmuladd.f64(double %183, double %184, double %187)
  %189 = load double, ptr %17, align 8, !tbaa !28
  %190 = load double, ptr %18, align 8, !tbaa !28
  %191 = fadd double %189, %190
  %192 = fdiv double %188, %191
  store double %192, ptr %19, align 8, !tbaa !28
  %193 = load double, ptr %17, align 8, !tbaa !28
  %194 = load double, ptr %13, align 8, !tbaa !28
  %195 = load double, ptr %18, align 8, !tbaa !28
  %196 = load double, ptr %14, align 8, !tbaa !28
  %197 = fmul double %195, %196
  %198 = call double @llvm.fmuladd.f64(double %193, double %194, double %197)
  %199 = load double, ptr %17, align 8, !tbaa !28
  %200 = load double, ptr %18, align 8, !tbaa !28
  %201 = fadd double %199, %200
  %202 = fdiv double %198, %201
  store double %202, ptr %20, align 8, !tbaa !28
  %203 = load double, ptr %17, align 8, !tbaa !28
  %204 = load double, ptr %7, align 8, !tbaa !28
  %205 = load double, ptr %18, align 8, !tbaa !28
  %206 = load double, ptr %8, align 8, !tbaa !28
  %207 = fmul double %205, %206
  %208 = call double @llvm.fmuladd.f64(double %203, double %204, double %207)
  %209 = load double, ptr %17, align 8, !tbaa !28
  %210 = load double, ptr %18, align 8, !tbaa !28
  %211 = fadd double %209, %210
  %212 = fdiv double %208, %211
  store double %212, ptr %21, align 8, !tbaa !28
  %213 = getelementptr inbounds %struct.RiemannSolver, ptr %38, i32 0, i32 2
  %214 = getelementptr inbounds %struct.solverParams, ptr %213, i32 0, i32 3
  %215 = load double, ptr %214, align 8, !tbaa !29
  %216 = load double, ptr %21, align 8, !tbaa !28
  %217 = load double, ptr %19, align 8, !tbaa !28
  %218 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %217, i32 noundef 2)
  %219 = load double, ptr %20, align 8, !tbaa !28
  %220 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %219, i32 noundef 2)
  %221 = fadd double %218, %220
  %222 = call double @llvm.fmuladd.f64(double -5.000000e-01, double %221, double %216)
  %223 = fmul double %215, %222
  %224 = call double @sqrt(double noundef %223) #7
  store double %224, ptr %22, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 16, ptr %28) #7
  %225 = load double, ptr %19, align 8, !tbaa !28
  %226 = load double, ptr %22, align 8, !tbaa !28
  %227 = fsub double %225, %226
  store double %227, ptr %28, align 8, !tbaa !28
  %228 = getelementptr inbounds double, ptr %28, i64 1
  %229 = load double, ptr %11, align 8, !tbaa !28
  %230 = load double, ptr %9, align 8, !tbaa !28
  %231 = fsub double %229, %230
  store double %231, ptr %228, align 8, !tbaa !28
  %232 = getelementptr inbounds %"class.std::initializer_list", ptr %27, i32 0, i32 0
  store ptr %28, ptr %232, align 8, !tbaa !31
  %233 = getelementptr inbounds %"class.std::initializer_list", ptr %27, i32 0, i32 1
  store i64 2, ptr %233, align 8, !tbaa !33
  %234 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 0
  %235 = load ptr, ptr %234, align 8
  %236 = getelementptr inbounds { ptr, i64 }, ptr %27, i32 0, i32 1
  %237 = load i64, ptr %236, align 8
  %238 = call noundef double @_ZSt3minIdET_St16initializer_listIS0_E(ptr %235, i64 %237)
  store double %238, ptr %23, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 16, ptr %28) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %30) #7
  %239 = load double, ptr %19, align 8, !tbaa !28
  %240 = load double, ptr %22, align 8, !tbaa !28
  %241 = fadd double %239, %240
  store double %241, ptr %30, align 8, !tbaa !28
  %242 = getelementptr inbounds double, ptr %30, i64 1
  %243 = load double, ptr %12, align 8, !tbaa !28
  %244 = load double, ptr %10, align 8, !tbaa !28
  %245 = fadd double %243, %244
  store double %245, ptr %242, align 8, !tbaa !28
  %246 = getelementptr inbounds %"class.std::initializer_list", ptr %29, i32 0, i32 0
  store ptr %30, ptr %246, align 8, !tbaa !31
  %247 = getelementptr inbounds %"class.std::initializer_list", ptr %29, i32 0, i32 1
  store i64 2, ptr %247, align 8, !tbaa !33
  %248 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 0
  %249 = load ptr, ptr %248, align 8
  %250 = getelementptr inbounds { ptr, i64 }, ptr %29, i32 0, i32 1
  %251 = load i64, ptr %250, align 8
  %252 = call noundef double @_ZSt3maxIdET_St16initializer_listIS0_E(ptr %249, i64 %251)
  store double %252, ptr %24, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 16, ptr %30) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %31) #7
  %253 = load double, ptr %23, align 8, !tbaa !28
  %254 = call double @llvm.fabs.f64(double %253)
  store double %254, ptr %31, align 8, !tbaa !28
  call void @llvm.lifetime.start.p0(i64 8, ptr %32) #7
  %255 = load double, ptr %24, align 8, !tbaa !28
  %256 = call double @llvm.fabs.f64(double %255)
  store double %256, ptr %32, align 8, !tbaa !28
  %257 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef nonnull align 8 dereferenceable(8) %32)
  %258 = load double, ptr %257, align 8, !tbaa !28
  call void @_ZN13RiemannSolver13toMaxVelocityEd(ptr noundef nonnull align 8 dereferenceable(88) %38, double noundef %258)
  call void @llvm.lifetime.end.p0(i64 8, ptr %32) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %31) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %34) #7
  store double 0.000000e+00, ptr %34, align 8, !tbaa !28
  %259 = getelementptr inbounds double, ptr %34, i64 1
  %260 = load double, ptr %24, align 8, !tbaa !28
  store double %260, ptr %259, align 8, !tbaa !28
  %261 = getelementptr inbounds %"class.std::initializer_list", ptr %33, i32 0, i32 0
  store ptr %34, ptr %261, align 8, !tbaa !31
  %262 = getelementptr inbounds %"class.std::initializer_list", ptr %33, i32 0, i32 1
  store i64 2, ptr %262, align 8, !tbaa !33
  %263 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 0
  %264 = load ptr, ptr %263, align 8
  %265 = getelementptr inbounds { ptr, i64 }, ptr %33, i32 0, i32 1
  %266 = load i64, ptr %265, align 8
  %267 = call noundef double @_ZSt3maxIdET_St16initializer_listIS0_E(ptr %264, i64 %266)
  store double %267, ptr %25, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 16, ptr %34) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr %36) #7
  store double 0.000000e+00, ptr %36, align 8, !tbaa !28
  %268 = getelementptr inbounds double, ptr %36, i64 1
  %269 = load double, ptr %23, align 8, !tbaa !28
  store double %269, ptr %268, align 8, !tbaa !28
  %270 = getelementptr inbounds %"class.std::initializer_list", ptr %35, i32 0, i32 0
  store ptr %36, ptr %270, align 8, !tbaa !31
  %271 = getelementptr inbounds %"class.std::initializer_list", ptr %35, i32 0, i32 1
  store i64 2, ptr %271, align 8, !tbaa !33
  %272 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 0
  %273 = load ptr, ptr %272, align 8
  %274 = getelementptr inbounds { ptr, i64 }, ptr %35, i32 0, i32 1
  %275 = load i64, ptr %274, align 8
  %276 = call noundef double @_ZSt3minIdET_St16initializer_listIS0_E(ptr %273, i64 %275)
  store double %276, ptr %26, align 8, !tbaa !28
  call void @llvm.lifetime.end.p0(i64 16, ptr %36) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %37) #7
  store i64 0, ptr %37, align 8, !tbaa !34
  br label %277

277:                                              ; preds = %339, %48
  %278 = load i64, ptr %37, align 8, !tbaa !34
  %279 = load ptr, ptr %4, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.SystemOfEquation, ptr %279, i32 0, i32 6
  %281 = load i64, ptr %280, align 8, !tbaa !35
  %282 = icmp ult i64 %278, %281
  br i1 %282, label %284, label %283

283:                                              ; preds = %277
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %37) #7
  br label %342

284:                                              ; preds = %277
  %285 = load double, ptr %25, align 8, !tbaa !28
  %286 = load ptr, ptr %4, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.SystemOfEquation, ptr %286, i32 0, i32 16
  %288 = load i64, ptr %37, align 8, !tbaa !34
  %289 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6MatrixSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %287, i64 noundef %288) #7
  %290 = load i32, ptr %5, align 4, !tbaa !9
  %291 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(24) %289, i32 noundef %290)
  %292 = load double, ptr %291, align 8, !tbaa !28
  %293 = load double, ptr %26, align 8, !tbaa !28
  %294 = load ptr, ptr %4, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.SystemOfEquation, ptr %294, i32 0, i32 16
  %296 = load i64, ptr %37, align 8, !tbaa !34
  %297 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6MatrixSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %295, i64 noundef %296) #7
  %298 = load i32, ptr %5, align 4, !tbaa !9
  %299 = add nsw i32 %298, 1
  %300 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(24) %297, i32 noundef %299)
  %301 = load double, ptr %300, align 8, !tbaa !28
  %302 = fmul double %293, %301
  %303 = fneg double %302
  %304 = call double @llvm.fmuladd.f64(double %285, double %292, double %303)
  %305 = load double, ptr %25, align 8, !tbaa !28
  %306 = load double, ptr %26, align 8, !tbaa !28
  %307 = fsub double %305, %306
  %308 = fdiv double %304, %307
  %309 = load double, ptr %25, align 8, !tbaa !28
  %310 = load double, ptr %26, align 8, !tbaa !28
  %311 = fmul double %309, %310
  %312 = load double, ptr %25, align 8, !tbaa !28
  %313 = load double, ptr %26, align 8, !tbaa !28
  %314 = fsub double %312, %313
  %315 = fdiv double %311, %314
  %316 = load ptr, ptr %4, align 8, !tbaa !5
  %317 = getelementptr inbounds %struct.SystemOfEquation, ptr %316, i32 0, i32 14
  %318 = load i64, ptr %37, align 8, !tbaa !34
  %319 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6MatrixSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %317, i64 noundef %318) #7
  %320 = load i32, ptr %5, align 4, !tbaa !9
  %321 = add nsw i32 %320, 1
  %322 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(24) %319, i32 noundef %321)
  %323 = load double, ptr %322, align 8, !tbaa !28
  %324 = load ptr, ptr %4, align 8, !tbaa !5
  %325 = getelementptr inbounds %struct.SystemOfEquation, ptr %324, i32 0, i32 14
  %326 = load i64, ptr %37, align 8, !tbaa !34
  %327 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6MatrixSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %325, i64 noundef %326) #7
  %328 = load i32, ptr %5, align 4, !tbaa !9
  %329 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(24) %327, i32 noundef %328)
  %330 = load double, ptr %329, align 8, !tbaa !28
  %331 = fsub double %323, %330
  %332 = call double @llvm.fmuladd.f64(double %315, double %331, double %308)
  %333 = load ptr, ptr %4, align 8, !tbaa !5
  %334 = getelementptr inbounds %struct.SystemOfEquation, ptr %333, i32 0, i32 17
  %335 = load i64, ptr %37, align 8, !tbaa !34
  %336 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6MatrixSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %334, i64 noundef %335) #7
  %337 = load i32, ptr %5, align 4, !tbaa !9
  %338 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(24) %336, i32 noundef %337)
  store double %332, ptr %338, align 8, !tbaa !28
  br label %339

339:                                              ; preds = %284
  %340 = load i64, ptr %37, align 8, !tbaa !34
  %341 = add i64 %340, 1
  store i64 %341, ptr %37, align 8, !tbaa !34
  br label %277, !llvm.loop !36

342:                                              ; preds = %283
  call void @llvm.lifetime.end.p0(i64 8, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  br label %343

343:                                              ; preds = %342
  %344 = load i32, ptr %5, align 4, !tbaa !9
  %345 = add nsw i32 %344, 1
  store i32 %345, ptr %5, align 4, !tbaa !9
  br label %39, !llvm.loop !38

346:                                              ; preds = %47
  ret void
}

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { 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 #4 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !13, i64 8}
!12 = !{!"_ZTS16SystemOfEquation", !13, i64 8, !13, i64 16, !13, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !14, i64 56, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !19, i64 120, !21, i64 192, !22, i64 200, !22, i64 224, !22, i64 248, !22, i64 272}
!13 = !{!"long", !7, i64 0}
!14 = !{!"_ZTS7Mixture", !15, i64 0, !10, i64 24}
!15 = !{!"_ZTSSt6vectorI16MixtureComponentSaIS0_EE", !16, i64 0}
!16 = !{!"_ZTSSt12_Vector_baseI16MixtureComponentSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSNSt12_Vector_baseI16MixtureComponentSaIS0_EE12_Vector_implE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI16MixtureComponentSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!19 = !{!"_ZTS12solverParams", !10, i64 0, !20, i64 8, !20, i64 16, !20, i64 24, !20, i64 32, !20, i64 40, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68}
!20 = !{!"double", !7, i64 0}
!21 = !{!"_ZTS20SystemOfEquationType", !7, i64 0}
!22 = !{!"_ZTSSt6vectorI6MatrixSaIS0_EE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseI6MatrixSaIS0_EE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseI6MatrixSaIS0_EE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseI6MatrixSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !8, i64 0}
!28 = !{!20, !20, i64 0}
!29 = !{!30, !20, i64 40}
!30 = !{!"_ZTS13RiemannSolver", !20, i64 8, !19, i64 16}
!31 = !{!32, !6, i64 0}
!32 = !{!"_ZTSSt16initializer_listIdE", !6, i64 0, !13, i64 8}
!33 = !{!32, !13, i64 8}
!34 = !{!13, !13, i64 0}
!35 = !{!12, !13, i64 48}
!36 = distinct !{!36, !37}
!37 = !{!"llvm.loop.mustprogress"}
!38 = distinct !{!38, !37}


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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN13RiemannSolver13toMaxVelocityEd(ptr noundef nonnull align 8 dereferenceable(88), double noundef) local_unnamed_addr #0 align 2

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef, i32 noundef) local_unnamed_addr #3

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #3

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

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

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3minIdET_St16initializer_listIS0_E(ptr, i64) local_unnamed_addr #5

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef double @_ZSt3maxIdET_St16initializer_listIS0_E(ptr, i64) local_unnamed_addr #5

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN10HLLESolver11computeFluxEP16SystemOfEquation(ptr noundef nonnull align 8 dereferenceable(88) %0, ptr noundef %1) unnamed_addr #6 align 2 {
  %3 = alloca [2 x double], align 16
  %4 = alloca [2 x double], align 16
  %5 = alloca double, align 8
  %6 = alloca double, align 8
  %7 = alloca [2 x double], align 8
  %8 = alloca [2 x double], align 8
  tail call void @_ZN13RiemannSolver13toMaxVelocityEd(ptr noundef nonnull align 8 dereferenceable(88) %0, double noundef -1.000000e+00)
  %9 = getelementptr inbounds i8, ptr %1, i64 8
  %10 = load i64, ptr %9, align 8, !tbaa !5
  %.not = icmp eq i64 %10, 1
  br i1 %.not, label %._crit_edge, label %.lr.ph106

.lr.ph106:                                        ; preds = %2
  %11 = getelementptr inbounds i8, ptr %0, i64 40
  %12 = getelementptr inbounds i8, ptr %7, i64 8
  %13 = getelementptr inbounds i8, ptr %8, i64 8
  %14 = getelementptr inbounds i8, ptr %1, i64 48
  %15 = getelementptr inbounds i8, ptr %1, i64 248
  %16 = getelementptr inbounds i8, ptr %1, i64 200
  %17 = getelementptr inbounds i8, ptr %1, i64 272
  br label %21

.loopexit:                                        ; preds = %138, %21
  %18 = load i64, ptr %9, align 8, !tbaa !5
  %19 = add i64 %18, -1
  %20 = icmp ugt i64 %19, %indvars.iv.next
  br i1 %20, label %21, label %._crit_edge, !llvm.loop !24

._crit_edge:                                      ; preds = %.loopexit, %2
  ret void

21:                                               ; preds = %.lr.ph106, %.loopexit
  %indvars.iv = phi i64 [ 0, %.lr.ph106 ], [ %indvars.iv.next, %.loopexit ]
  %22 = load ptr, ptr %1, align 8, !tbaa !26
  %23 = getelementptr inbounds i8, ptr %22, i64 40
  %24 = load ptr, ptr %23, align 8
  %25 = call noundef double %24(ptr noundef nonnull align 8 dereferenceable(296) %1, i64 noundef %indvars.iv)
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %26 = load ptr, ptr %1, align 8, !tbaa !26
  %27 = getelementptr inbounds i8, ptr %26, i64 40
  %28 = load ptr, ptr %27, align 8
  %29 = call noundef double %28(ptr noundef nonnull align 8 dereferenceable(296) %1, i64 noundef %indvars.iv.next)
  %30 = load ptr, ptr %1, align 8, !tbaa !26
  %31 = getelementptr inbounds i8, ptr %30, i64 32
  %32 = load ptr, ptr %31, align 8
  %33 = call noundef double %32(ptr noundef nonnull align 8 dereferenceable(296) %1, i64 noundef %indvars.iv)
  %34 = load ptr, ptr %1, align 8, !tbaa !26
  %35 = getelementptr inbounds i8, ptr %34, i64 32
  %36 = load ptr, ptr %35, align 8
  %37 = call noundef double %36(ptr noundef nonnull align 8 dereferenceable(296) %1, i64 noundef %indvars.iv.next)
  %38 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %25, i32 noundef 2)
  %39 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %33, i32 noundef 2)
  %40 = fadd double %38, %39
  %41 = call double @sqrt(double noundef %40) #7
  %42 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %29, i32 noundef 2)
  %43 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %37, i32 noundef 2)
  %44 = fadd double %42, %43
  %45 = call double @sqrt(double noundef %44) #7
  %46 = load ptr, ptr %1, align 8, !tbaa !26
  %47 = getelementptr inbounds i8, ptr %46, i64 48
  %48 = load ptr, ptr %47, align 8
  %49 = call noundef double %48(ptr noundef nonnull align 8 dereferenceable(296) %1, i64 noundef %indvars.iv)
  %50 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %41, i32 noundef 2)
  %51 = fsub double %49, %50
  %52 = load ptr, ptr %1, align 8, !tbaa !26
  %53 = load ptr, ptr %52, align 8
  %54 = call noundef double %53(ptr noundef nonnull align 8 dereferenceable(296) %1, i64 noundef %indvars.iv)
  %55 = load ptr, ptr %1, align 8, !tbaa !26
  %56 = getelementptr inbounds i8, ptr %55, i64 8
  %57 = load ptr, ptr %56, align 8
  %58 = call noundef double %57(ptr noundef nonnull align 8 dereferenceable(296) %1, i64 noundef %indvars.iv)
  %59 = fdiv double %54, %58
  %60 = fadd double %51, %59
  %61 = load ptr, ptr %1, align 8, !tbaa !26
  %62 = getelementptr inbounds i8, ptr %61, i64 48
  %63 = load ptr, ptr %62, align 8
  %64 = call noundef double %63(ptr noundef nonnull align 8 dereferenceable(296) %1, i64 noundef %indvars.iv.next)
  %65 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %45, i32 noundef 2)
  %66 = fsub double %64, %65
  %67 = load ptr, ptr %1, align 8, !tbaa !26
  %68 = load ptr, ptr %67, align 8
  %69 = call noundef double %68(ptr noundef nonnull align 8 dereferenceable(296) %1, i64 noundef %indvars.iv.next)
  %70 = load ptr, ptr %1, align 8, !tbaa !26
  %71 = getelementptr inbounds i8, ptr %70, i64 8
  %72 = load ptr, ptr %71, align 8
  %73 = call noundef double %72(ptr noundef nonnull align 8 dereferenceable(296) %1, i64 noundef %indvars.iv.next)
  %74 = fdiv double %69, %73
  %75 = fadd double %66, %74
  %76 = load double, ptr %11, align 8, !tbaa !28
  %77 = fadd double %76, -1.000000e+00
  %78 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %41, i32 noundef 2)
  %79 = call double @llvm.fmuladd.f64(double %78, double -5.000000e-01, double %60)
  %80 = fmul double %77, %79
  %81 = call double @sqrt(double noundef %80) #7
  %82 = load double, ptr %11, align 8, !tbaa !28
  %83 = fadd double %82, -1.000000e+00
  %84 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %45, i32 noundef 2)
  %85 = call double @llvm.fmuladd.f64(double %84, double -5.000000e-01, double %75)
  %86 = fmul double %83, %85
  %87 = call double @sqrt(double noundef %86) #7
  %88 = load ptr, ptr %1, align 8, !tbaa !26
  %89 = getelementptr inbounds i8, ptr %88, i64 8
  %90 = load ptr, ptr %89, align 8
  %91 = call noundef double %90(ptr noundef nonnull align 8 dereferenceable(296) %1, i64 noundef %indvars.iv)
  %92 = call double @sqrt(double noundef %91) #7
  %93 = load ptr, ptr %1, align 8, !tbaa !26
  %94 = getelementptr inbounds i8, ptr %93, i64 8
  %95 = load ptr, ptr %94, align 8
  %96 = call noundef double %95(ptr noundef nonnull align 8 dereferenceable(296) %1, i64 noundef %indvars.iv.next)
  %97 = call double @sqrt(double noundef %96) #7
  %98 = fmul double %29, %97
  %99 = call double @llvm.fmuladd.f64(double %92, double %25, double %98)
  %100 = fadd double %92, %97
  %101 = fdiv double %99, %100
  %102 = fmul double %37, %97
  %103 = call double @llvm.fmuladd.f64(double %92, double %33, double %102)
  %104 = fdiv double %103, %100
  %105 = fmul double %75, %97
  %106 = call double @llvm.fmuladd.f64(double %92, double %60, double %105)
  %107 = fdiv double %106, %100
  %108 = load double, ptr %11, align 8, !tbaa !28
  %109 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %101, i32 noundef 2)
  %110 = call noundef double @_ZSt3powIdiEN9__gnu_cxx9__promoteIDTplcvNS1_IT_Xsr3std12__is_integerIS2_EE7__valueEE6__typeELi0EcvNS1_IT0_Xsr3std12__is_integerIS5_EE7__valueEE6__typeELi0EEXsr3std12__is_integerIS8_EE7__valueEE6__typeES2_S5_(double noundef %104, i32 noundef 2)
  %111 = fadd double %109, %110
  %112 = call double @llvm.fmuladd.f64(double %111, double -5.000000e-01, double %107)
  %113 = fmul double %108, %112
  %114 = call double @sqrt(double noundef %113) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %3) #7
  %115 = insertelement <2 x double> poison, double %101, i64 0
  %116 = insertelement <2 x double> %115, double %25, i64 1
  %117 = insertelement <2 x double> poison, double %114, i64 0
  %118 = insertelement <2 x double> %117, double %81, i64 1
  %119 = fsub <2 x double> %116, %118
  store <2 x double> %119, ptr %3, align 16, !tbaa !30
  %120 = call noundef double @_ZSt3minIdET_St16initializer_listIS0_E(ptr nonnull %3, i64 2)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %3) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %4) #7
  %121 = insertelement <2 x double> %115, double %29, i64 1
  %122 = insertelement <2 x double> %117, double %87, i64 1
  %123 = fadd <2 x double> %121, %122
  store <2 x double> %123, ptr %4, align 16, !tbaa !30
  %124 = call noundef double @_ZSt3maxIdET_St16initializer_listIS0_E(ptr nonnull %4, i64 2)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %4) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #7
  %125 = call double @llvm.fabs.f64(double %120)
  store double %125, ptr %5, align 8, !tbaa !30
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #7
  %126 = call double @llvm.fabs.f64(double %124)
  store double %126, ptr %6, align 8, !tbaa !30
  %127 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef nonnull align 8 dereferenceable(8) %6)
  %128 = load double, ptr %127, align 8, !tbaa !30
  call void @_ZN13RiemannSolver13toMaxVelocityEd(ptr noundef nonnull align 8 dereferenceable(88) %0, double noundef %128)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %7) #7
  store double 0.000000e+00, ptr %7, align 8, !tbaa !30
  store double %124, ptr %12, align 8, !tbaa !30
  %129 = call noundef double @_ZSt3maxIdET_St16initializer_listIS0_E(ptr nonnull %7, i64 2)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %7) #7
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %8) #7
  store double 0.000000e+00, ptr %8, align 8, !tbaa !30
  store double %120, ptr %13, align 8, !tbaa !30
  %130 = call noundef double @_ZSt3minIdET_St16initializer_listIS0_E(ptr nonnull %8, i64 2)
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %8) #7
  %131 = load i64, ptr %14, align 8, !tbaa !31
  %.not107 = icmp eq i64 %131, 0
  br i1 %.not107, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %21
  %132 = fneg double %130
  %133 = fsub double %129, %130
  %134 = fmul double %129, %130
  %135 = fdiv double %134, %133
  %136 = trunc nuw nsw i64 %indvars.iv to i32
  %137 = trunc nuw i64 %indvars.iv.next to i32
  br label %138

138:                                              ; preds = %.lr.ph, %138
  %.0104 = phi i64 [ 0, %.lr.ph ], [ %158, %138 ]
  %139 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6MatrixSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %.0104) #7
  %140 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(24) %139, i32 noundef %136)
  %141 = load double, ptr %140, align 8, !tbaa !30
  %142 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6MatrixSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %15, i64 noundef %.0104) #7
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(24) %142, i32 noundef %137)
  %144 = load double, ptr %143, align 8, !tbaa !30
  %145 = fmul double %144, %132
  %146 = call double @llvm.fmuladd.f64(double %129, double %141, double %145)
  %147 = fdiv double %146, %133
  %148 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6MatrixSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %.0104) #7
  %149 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(24) %148, i32 noundef %137)
  %150 = load double, ptr %149, align 8, !tbaa !30
  %151 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6MatrixSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %16, i64 noundef %.0104) #7
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(24) %151, i32 noundef %136)
  %153 = load double, ptr %152, align 8, !tbaa !30
  %154 = fsub double %150, %153
  %155 = call double @llvm.fmuladd.f64(double %135, double %154, double %147)
  %156 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorI6MatrixSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef %.0104) #7
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN6MatrixixEi(ptr noundef nonnull align 8 dereferenceable(24) %156, i32 noundef %136)
  store double %155, ptr %157, align 8, !tbaa !30
  %158 = add nuw i64 %.0104, 1
  %159 = load i64, ptr %14, align 8, !tbaa !31
  %160 = icmp ult i64 %158, %159
  br i1 %160, label %138, label %.loopexit, !llvm.loop !32
}

attributes #0 = { 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 #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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, !7, i64 8}
!6 = !{!"_ZTS16SystemOfEquation", !7, i64 8, !7, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !10, i64 56, !15, i64 88, !15, i64 96, !15, i64 104, !15, i64 112, !17, i64 120, !19, i64 192, !20, i64 200, !20, i64 224, !20, i64 248, !20, i64 272}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS7Mixture", !11, i64 0, !16, i64 24}
!11 = !{!"_ZTSSt6vectorI16MixtureComponentSaIS0_EE", !12, i64 0}
!12 = !{!"_ZTSSt12_Vector_baseI16MixtureComponentSaIS0_EE", !13, i64 0}
!13 = !{!"_ZTSNSt12_Vector_baseI16MixtureComponentSaIS0_EE12_Vector_implE", !14, i64 0}
!14 = !{!"_ZTSNSt12_Vector_baseI16MixtureComponentSaIS0_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!15 = !{!"any pointer", !8, i64 0}
!16 = !{!"int", !8, i64 0}
!17 = !{!"_ZTS12solverParams", !16, i64 0, !18, i64 8, !18, i64 16, !18, i64 24, !18, i64 32, !18, i64 40, !16, i64 48, !16, i64 52, !16, i64 56, !16, i64 60, !16, i64 64, !16, i64 68}
!18 = !{!"double", !8, i64 0}
!19 = !{!"_ZTS20SystemOfEquationType", !8, i64 0}
!20 = !{!"_ZTSSt6vectorI6MatrixSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseI6MatrixSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI6MatrixSaIS0_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI6MatrixSaIS0_EE17_Vector_impl_dataE", !15, i64 0, !15, i64 8, !15, i64 16}
!24 = distinct !{!24, !25}
!25 = !{!"llvm.loop.mustprogress"}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !9, i64 0}
!28 = !{!29, !18, i64 40}
!29 = !{!"_ZTS13RiemannSolver", !18, i64 8, !17, i64 16}
!30 = !{!18, !18, i64 0}
!31 = !{!6, !7, i64 48}
!32 = distinct !{!32, !25}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass