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

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 }
%struct.macroParam = type { %struct.Mixture, %"class.std::vector.5", %"class.std::vector.5", double, double, double, double, double, double, double, double, %"class.std::__cxx11::basic_string" }
%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 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%struct.AbstractSolver = type <{ ptr, ptr, ptr, ptr, %struct.Mixture, %struct.solverParams, ptr, ptr, ptr, ptr, %"class.std::vector.0", double, %class.Matrix, i8, i8, [2 x i8], i32, i8, [7 x i8] }>
%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<macroParam, std::allocator<macroParam>>::_Vector_impl" }
%"struct.std::_Vector_base<macroParam, std::allocator<macroParam>>::_Vector_impl" = type { %"struct.std::_Vector_base<macroParam, std::allocator<macroParam>>::_Vector_impl_data" }
%"struct.std::_Vector_base<macroParam, std::allocator<macroParam>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.Matrix = type { %"class.std::vector.5" }

declare i32 @__gxx_personality_v0(...)

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14AbstractSolver20setStartDistributionE10macroParam(ptr noundef nonnull align 8 dereferenceable(233) %0, ptr noundef %1) #3 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca %"class.std::vector.5", align 8
  %7 = alloca ptr, align 8
  %8 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %3, align 8
  %10 = load ptr, ptr %9, align 8, !tbaa !9
  %11 = getelementptr inbounds ptr, ptr %10, i64 3
  %12 = load ptr, ptr %11, align 8
  call void %12(ptr noundef nonnull align 8 dereferenceable(233) %9)
  %13 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 0
  %14 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 4
  %15 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %14, ptr noundef nonnull align 8 dereferenceable(28) %13)
  %16 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 4
  %17 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %18 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %17, i64 noundef 0) #7
  %19 = getelementptr inbounds %struct.macroParam, ptr %18, i32 0, i32 0
  %20 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %19, ptr noundef nonnull align 8 dereferenceable(28) %16)
  %21 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 4
  %22 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %23 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %24 = call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %23) #7
  %25 = sub i64 %24, 1
  %26 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %22, i64 noundef %25) #7
  %27 = getelementptr inbounds %struct.macroParam, ptr %26, i32 0, i32 0
  %28 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %27, ptr noundef nonnull align 8 dereferenceable(28) %21)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #7
  store i64 1, ptr %5, align 8, !tbaa !11
  br label %29

29:                                               ; preds = %125, %2
  %30 = load i64, ptr %5, align 8, !tbaa !11
  %31 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %32 = call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %31) #7
  %33 = sub i64 %32, 1
  %34 = icmp ult i64 %30, %33
  br i1 %34, label %36, label %35

35:                                               ; preds = %29
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %132

36:                                               ; preds = %29
  %37 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 4
  %38 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %39 = load i64, ptr %5, align 8, !tbaa !11
  %40 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %38, i64 noundef %39) #7
  %41 = getelementptr inbounds %struct.macroParam, ptr %40, i32 0, i32 0
  %42 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %41, ptr noundef nonnull align 8 dereferenceable(28) %37)
  %43 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 8
  %44 = load double, ptr %43, align 8, !tbaa !13
  %45 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %46 = load i64, ptr %5, align 8, !tbaa !11
  %47 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %45, i64 noundef %46) #7
  %48 = getelementptr inbounds %struct.macroParam, ptr %47, i32 0, i32 8
  store double %44, ptr %48, align 8, !tbaa !13
  %49 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 2
  %50 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %51 = load i64, ptr %5, align 8, !tbaa !11
  %52 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %50, i64 noundef %51) #7
  %53 = getelementptr inbounds %struct.macroParam, ptr %52, i32 0, i32 2
  %54 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %53, ptr noundef nonnull align 8 dereferenceable(24) %49)
  %55 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 3
  %56 = load double, ptr %55, align 8, !tbaa !28
  %57 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %58 = load i64, ptr %5, align 8, !tbaa !11
  %59 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %57, i64 noundef %58) #7
  %60 = getelementptr inbounds %struct.macroParam, ptr %59, i32 0, i32 3
  store double %56, ptr %60, align 8, !tbaa !28
  %61 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %62 = load i64, ptr %5, align 8, !tbaa !11
  %63 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %61, i64 noundef %62) #7
  %64 = getelementptr inbounds %struct.macroParam, ptr %63, i32 0, i32 3
  %65 = load double, ptr %64, align 8, !tbaa !28
  %66 = fmul double %65, 0x4020A100DFF9D03B
  %67 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 8
  %68 = load double, ptr %67, align 8, !tbaa !13
  %69 = fmul double %66, %68
  %70 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 4
  %71 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 2
  call void @_ZNSt6vectorIdSaIdEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %6, ptr noundef nonnull align 8 dereferenceable(24) %71)
  %72 = invoke noundef double @_ZN7Mixture9molarMassESt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(28) %70, ptr noundef %6)
          to label %73 unwind label %128

73:                                               ; preds = %36
  %74 = fdiv double %69, %72
  %75 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %76 = load i64, ptr %5, align 8, !tbaa !11
  %77 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %76) #7
  %78 = getelementptr inbounds %struct.macroParam, ptr %77, i32 0, i32 4
  store double %74, ptr %78, align 8, !tbaa !29
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  %79 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 1
  %80 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %81 = load i64, ptr %5, align 8, !tbaa !11
  %82 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %80, i64 noundef %81) #7
  %83 = getelementptr inbounds %struct.macroParam, ptr %82, i32 0, i32 1
  %84 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %83, ptr noundef nonnull align 8 dereferenceable(24) %79)
  %85 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 5
  %86 = getelementptr inbounds %struct.solverParams, ptr %85, i32 0, i32 3
  %87 = load double, ptr %86, align 8, !tbaa !30
  %88 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %89 = load i64, ptr %5, align 8, !tbaa !11
  %90 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %88, i64 noundef %89) #7
  %91 = getelementptr inbounds %struct.macroParam, ptr %90, i32 0, i32 4
  %92 = load double, ptr %91, align 8, !tbaa !29
  %93 = fmul double %87, %92
  %94 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %95 = load i64, ptr %5, align 8, !tbaa !11
  %96 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %94, i64 noundef %95) #7
  %97 = getelementptr inbounds %struct.macroParam, ptr %96, i32 0, i32 3
  %98 = load double, ptr %97, align 8, !tbaa !28
  %99 = fdiv double %93, %98
  %100 = call double @sqrt(double noundef %99) #7
  %101 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %102 = load i64, ptr %5, align 8, !tbaa !11
  %103 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %101, i64 noundef %102) #7
  %104 = getelementptr inbounds %struct.macroParam, ptr %103, i32 0, i32 10
  store double %100, ptr %104, align 8, !tbaa !39
  %105 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 5
  %106 = load double, ptr %105, align 8, !tbaa !40
  %107 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %108 = load i64, ptr %5, align 8, !tbaa !11
  %109 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %108) #7
  %110 = getelementptr inbounds %struct.macroParam, ptr %109, i32 0, i32 5
  store double %106, ptr %110, align 8, !tbaa !40
  %111 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %112 = load i64, ptr %5, align 8, !tbaa !11
  %113 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %111, i64 noundef %112) #7
  %114 = getelementptr inbounds %struct.macroParam, ptr %113, i32 0, i32 6
  store double 0.000000e+00, ptr %114, align 8, !tbaa !41
  %115 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %116 = load i64, ptr %5, align 8, !tbaa !11
  %117 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %115, i64 noundef %116) #7
  %118 = getelementptr inbounds %struct.macroParam, ptr %117, i32 0, i32 5
  %119 = load double, ptr %118, align 8, !tbaa !40
  %120 = call double @llvm.fabs.f64(double %119)
  %121 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %122 = load i64, ptr %5, align 8, !tbaa !11
  %123 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %121, i64 noundef %122) #7
  %124 = getelementptr inbounds %struct.macroParam, ptr %123, i32 0, i32 7
  store double %120, ptr %124, align 8, !tbaa !42
  br label %125

125:                                              ; preds = %73
  %126 = load i64, ptr %5, align 8, !tbaa !11
  %127 = add i64 %126, 1
  store i64 %127, ptr %5, align 8, !tbaa !11
  br label %29, !llvm.loop !43

128:                                              ; preds = %36
  %129 = landingpad { ptr, i32 }
          cleanup
  %130 = extractvalue { ptr, i32 } %129, 0
  store ptr %130, ptr %7, align 8
  %131 = extractvalue { ptr, i32 } %129, 1
  store i32 %131, ptr %8, align 4
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %6) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #7
  br label %139

132:                                              ; preds = %35
  call void @_ZN14AbstractSolver9useBorderEv(ptr noundef nonnull align 8 dereferenceable(233) %9)
  %133 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 1
  %134 = load ptr, ptr %133, align 8, !tbaa !45
  %135 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %136 = load ptr, ptr %134, align 8, !tbaa !9
  %137 = getelementptr inbounds ptr, ptr %136, i64 10
  %138 = load ptr, ptr %137, align 8
  call void %138(ptr noundef nonnull align 8 dereferenceable(296) %134, ptr noundef nonnull align 8 dereferenceable(24) %135)
  ret void

139:                                              ; preds = %128
  %140 = load ptr, ptr %7, align 8
  %141 = load i32, ptr %8, align 4
  %142 = insertvalue { ptr, i32 } poison, ptr %140, 0
  %143 = insertvalue { ptr, i32 } %142, i32 %141, 1
  resume { ptr, i32 } %143
}

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

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

declare noundef double @_ZN7Mixture9molarMassESt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef) #4

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14AbstractSolver9useBorderEv(ptr noundef nonnull align 8 dereferenceable(233)) #3 align 2

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { 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 = { "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 = { 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 #6 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"vtable pointer", !8, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"long", !7, i64 0}
!13 = !{!14, !25, i64 120}
!14 = !{!"_ZTS10macroParam", !15, i64 0, !21, i64 32, !21, i64 56, !25, i64 80, !25, i64 88, !25, i64 96, !25, i64 104, !25, i64 112, !25, i64 120, !25, i64 128, !25, i64 136, !26, i64 144}
!15 = !{!"_ZTS7Mixture", !16, i64 0, !20, i64 24}
!16 = !{!"_ZTSSt6vectorI16MixtureComponentSaIS0_EE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseI16MixtureComponentSaIS0_EE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseI16MixtureComponentSaIS0_EE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseI16MixtureComponentSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!20 = !{!"int", !7, i64 0}
!21 = !{!"_ZTSSt6vectorIdSaIdEE", !22, i64 0}
!22 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!25 = !{!"double", !7, i64 0}
!26 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !27, i64 0, !12, i64 8, !7, i64 16}
!27 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!28 = !{!14, !25, i64 80}
!29 = !{!14, !25, i64 88}
!30 = !{!31, !25, i64 88}
!31 = !{!"_ZTS14AbstractSolver", !6, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !32, i64 64, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !33, i64 168, !25, i64 192, !37, i64 200, !38, i64 224, !38, i64 225, !20, i64 228, !38, i64 232}
!32 = !{!"_ZTS12solverParams", !20, i64 0, !25, i64 8, !25, i64 16, !25, i64 24, !25, i64 32, !25, i64 40, !20, i64 48, !20, i64 52, !20, i64 56, !20, i64 60, !20, i64 64, !20, i64 68}
!33 = !{!"_ZTSSt6vectorI10macroParamSaIS0_EE", !34, i64 0}
!34 = !{!"_ZTSSt12_Vector_baseI10macroParamSaIS0_EE", !35, i64 0}
!35 = !{!"_ZTSNSt12_Vector_baseI10macroParamSaIS0_EE12_Vector_implE", !36, i64 0}
!36 = !{!"_ZTSNSt12_Vector_baseI10macroParamSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!37 = !{!"_ZTS6Matrix", !21, i64 0}
!38 = !{!"bool", !7, i64 0}
!39 = !{!14, !25, i64 136}
!40 = !{!14, !25, i64 96}
!41 = !{!14, !25, i64 104}
!42 = !{!14, !25, i64 112}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}
!45 = !{!31, !6, i64 8}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::vector.5" = type { %"struct.std::_Vector_base.6" }
%"struct.std::_Vector_base.6" = 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 }

declare i32 @__gxx_personality_v0(...)

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14AbstractSolver20setStartDistributionE10macroParam(ptr noundef nonnull align 8 dereferenceable(233) %0, ptr noundef %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::vector.5", align 8
  %4 = load ptr, ptr %0, align 8, !tbaa !5
  %5 = getelementptr inbounds i8, ptr %4, i64 24
  %6 = load ptr, ptr %5, align 8
  tail call void %6(ptr noundef nonnull align 8 dereferenceable(233) %0)
  %7 = getelementptr inbounds i8, ptr %0, i64 32
  %8 = tail call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %7, ptr noundef nonnull align 8 dereferenceable(28) %1)
  %9 = getelementptr inbounds i8, ptr %0, i64 168
  %10 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef 0) #6
  %11 = tail call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %10, ptr noundef nonnull align 8 dereferenceable(28) %7)
  %12 = tail call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %13 = add i64 %12, -1
  %14 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %13) #6
  %15 = tail call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %14, ptr noundef nonnull align 8 dereferenceable(28) %7)
  %16 = tail call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %17 = add i64 %16, -3
  %18 = icmp ult i64 %17, -2
  br i1 %18, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %2
  %19 = getelementptr inbounds i8, ptr %1, i64 120
  %20 = getelementptr inbounds i8, ptr %1, i64 56
  %21 = getelementptr inbounds i8, ptr %1, i64 80
  %22 = getelementptr inbounds i8, ptr %1, i64 32
  %23 = getelementptr inbounds i8, ptr %0, i64 88
  %24 = getelementptr inbounds i8, ptr %1, i64 96
  br label %30

._crit_edge:                                      ; preds = %47, %2
  call void @_ZN14AbstractSolver9useBorderEv(ptr noundef nonnull align 8 dereferenceable(233) %0)
  %25 = getelementptr inbounds i8, ptr %0, i64 8
  %26 = load ptr, ptr %25, align 8, !tbaa !8
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  %28 = getelementptr inbounds i8, ptr %27, i64 80
  %29 = load ptr, ptr %28, align 8
  call void %29(ptr noundef nonnull align 8 dereferenceable(296) %26, ptr noundef nonnull align 8 dereferenceable(24) %9)
  ret void

30:                                               ; preds = %.lr.ph, %47
  %.018 = phi i64 [ 1, %.lr.ph ], [ %79, %47 ]
  %31 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %32 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %31, ptr noundef nonnull align 8 dereferenceable(28) %7)
  %33 = load double, ptr %19, align 8, !tbaa !30
  %34 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %35 = getelementptr inbounds i8, ptr %34, i64 120
  store double %33, ptr %35, align 8, !tbaa !30
  %36 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %37 = getelementptr inbounds i8, ptr %36, i64 56
  %38 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %37, ptr noundef nonnull align 8 dereferenceable(24) %20)
  %39 = load double, ptr %21, align 8, !tbaa !35
  %40 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %41 = getelementptr inbounds i8, ptr %40, i64 80
  store double %39, ptr %41, align 8, !tbaa !35
  %42 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %43 = getelementptr inbounds i8, ptr %42, i64 80
  %44 = load double, ptr %43, align 8, !tbaa !35
  %45 = load double, ptr %19, align 8, !tbaa !30
  call void @_ZNSt6vectorIdSaIdEEC2ERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %3, ptr noundef nonnull align 8 dereferenceable(24) %20)
  %46 = invoke noundef double @_ZN7Mixture9molarMassESt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(28) %7, ptr noundef nonnull %3)
          to label %47 unwind label %83

47:                                               ; preds = %30
  %48 = fmul double %44, 0x4020A100DFF9D03B
  %49 = fmul double %48, %45
  %50 = fdiv double %49, %46
  %51 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %52 = getelementptr inbounds i8, ptr %51, i64 88
  store double %50, ptr %52, align 8, !tbaa !36
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  %53 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %54 = getelementptr inbounds i8, ptr %53, i64 32
  %55 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNSt6vectorIdSaIdEEaSERKS1_(ptr noundef nonnull align 8 dereferenceable(24) %54, ptr noundef nonnull align 8 dereferenceable(24) %22)
  %56 = load double, ptr %23, align 8, !tbaa !37
  %57 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %58 = getelementptr inbounds i8, ptr %57, i64 88
  %59 = load double, ptr %58, align 8, !tbaa !36
  %60 = fmul double %56, %59
  %61 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %62 = getelementptr inbounds i8, ptr %61, i64 80
  %63 = load double, ptr %62, align 8, !tbaa !35
  %64 = fdiv double %60, %63
  %65 = call double @sqrt(double noundef %64) #6
  %66 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %67 = getelementptr inbounds i8, ptr %66, i64 136
  store double %65, ptr %67, align 8, !tbaa !38
  %68 = load double, ptr %24, align 8, !tbaa !39
  %69 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %70 = getelementptr inbounds i8, ptr %69, i64 96
  store double %68, ptr %70, align 8, !tbaa !39
  %71 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %72 = getelementptr inbounds i8, ptr %71, i64 104
  store double 0.000000e+00, ptr %72, align 8, !tbaa !40
  %73 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %74 = getelementptr inbounds i8, ptr %73, i64 96
  %75 = load double, ptr %74, align 8, !tbaa !39
  %76 = call double @llvm.fabs.f64(double %75)
  %77 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.018) #6
  %78 = getelementptr inbounds i8, ptr %77, i64 112
  store double %76, ptr %78, align 8, !tbaa !41
  %79 = add nuw i64 %.018, 1
  %80 = call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #6
  %81 = add i64 %80, -1
  %82 = icmp ult i64 %79, %81
  br i1 %82, label %30, label %._crit_edge, !llvm.loop !42

83:                                               ; preds = %30
  %84 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt6vectorIdSaIdEED2Ev(ptr noundef nonnull align 8 dereferenceable(24) %3) #6
  resume { ptr, i32 } %84
}

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

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

declare noundef double @_ZN7Mixture9molarMassESt6vectorIdSaIdEE(ptr noundef nonnull align 8 dereferenceable(28), ptr noundef) local_unnamed_addr #3

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN14AbstractSolver9useBorderEv(ptr noundef nonnull align 8 dereferenceable(233)) local_unnamed_addr #2 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"vtable pointer", !7, i64 0}
!7 = !{!"Simple C++ TBAA"}
!8 = !{!9, !10, i64 8}
!9 = !{!"_ZTS14AbstractSolver", !10, i64 8, !10, i64 16, !10, i64 24, !12, i64 32, !18, i64 64, !10, i64 136, !10, i64 144, !10, i64 152, !10, i64 160, !20, i64 168, !19, i64 192, !24, i64 200, !29, i64 224, !29, i64 225, !17, i64 228, !29, i64 232}
!10 = !{!"any pointer", !11, i64 0}
!11 = !{!"omnipotent char", !7, i64 0}
!12 = !{!"_ZTS7Mixture", !13, i64 0, !17, i64 24}
!13 = !{!"_ZTSSt6vectorI16MixtureComponentSaIS0_EE", !14, i64 0}
!14 = !{!"_ZTSSt12_Vector_baseI16MixtureComponentSaIS0_EE", !15, i64 0}
!15 = !{!"_ZTSNSt12_Vector_baseI16MixtureComponentSaIS0_EE12_Vector_implE", !16, i64 0}
!16 = !{!"_ZTSNSt12_Vector_baseI16MixtureComponentSaIS0_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!17 = !{!"int", !11, i64 0}
!18 = !{!"_ZTS12solverParams", !17, i64 0, !19, i64 8, !19, i64 16, !19, i64 24, !19, i64 32, !19, i64 40, !17, i64 48, !17, i64 52, !17, i64 56, !17, i64 60, !17, i64 64, !17, i64 68}
!19 = !{!"double", !11, i64 0}
!20 = !{!"_ZTSSt6vectorI10macroParamSaIS0_EE", !21, i64 0}
!21 = !{!"_ZTSSt12_Vector_baseI10macroParamSaIS0_EE", !22, i64 0}
!22 = !{!"_ZTSNSt12_Vector_baseI10macroParamSaIS0_EE12_Vector_implE", !23, i64 0}
!23 = !{!"_ZTSNSt12_Vector_baseI10macroParamSaIS0_EE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!24 = !{!"_ZTS6Matrix", !25, i64 0}
!25 = !{!"_ZTSSt6vectorIdSaIdEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !10, i64 0, !10, i64 8, !10, i64 16}
!29 = !{!"bool", !11, i64 0}
!30 = !{!31, !19, i64 120}
!31 = !{!"_ZTS10macroParam", !12, i64 0, !25, i64 32, !25, i64 56, !19, i64 80, !19, i64 88, !19, i64 96, !19, i64 104, !19, i64 112, !19, i64 120, !19, i64 128, !19, i64 136, !32, i64 144}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !33, i64 0, !34, i64 8, !11, i64 16}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !10, i64 0}
!34 = !{!"long", !11, i64 0}
!35 = !{!31, !19, i64 80}
!36 = !{!31, !19, i64 88}
!37 = !{!9, !19, i64 88}
!38 = !{!31, !19, i64 136}
!39 = !{!31, !19, i64 96}
!40 = !{!31, !19, i64 104}
!41 = !{!31, !19, i64 112}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SROAPass,SimplifyCFGPass,TailCallElimPass