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

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

%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::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 }
%"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" }

; 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 nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14AbstractSolver20setStartDistributionE10macroParamS0_(ptr noundef nonnull align 8 dereferenceable(233) %0, ptr noundef %1, ptr noundef %2) #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  store ptr %0, ptr %4, align 8, !tbaa !5
  store ptr %1, ptr %5, align 8, !tbaa !5
  store ptr %2, ptr %6, align 8, !tbaa !5
  %9 = load ptr, ptr %4, align 8
  %10 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 0
  %11 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 4
  %12 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %11, ptr noundef nonnull align 8 dereferenceable(28) %10)
  %13 = load ptr, ptr %9, align 8, !tbaa !9
  %14 = getelementptr inbounds ptr, ptr %13, i64 3
  %15 = load ptr, ptr %14, align 8
  call void %15(ptr noundef nonnull align 8 dereferenceable(233) %9)
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #5
  store i64 0, ptr %7, align 8, !tbaa !11
  br label %16

16:                                               ; preds = %78, %3
  %17 = load i64, ptr %7, align 8, !tbaa !11
  %18 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %19 = call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %18) #5
  %20 = udiv i64 %19, 2
  %21 = icmp ult i64 %17, %20
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %16
  %24 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 4
  %25 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %26 = load i64, ptr %7, align 8, !tbaa !11
  %27 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %25, i64 noundef %26) #5
  %28 = getelementptr inbounds %struct.macroParam, ptr %27, i32 0, i32 0
  %29 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %28, ptr noundef nonnull align 8 dereferenceable(28) %24)
  %30 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 4
  %31 = load double, ptr %30, align 8, !tbaa !13
  %32 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %33 = load i64, ptr %7, align 8, !tbaa !11
  %34 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %32, i64 noundef %33) #5
  %35 = getelementptr inbounds %struct.macroParam, ptr %34, i32 0, i32 4
  store double %31, ptr %35, align 8, !tbaa !13
  %36 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 3
  %37 = load double, ptr %36, align 8, !tbaa !28
  %38 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %39 = load i64, ptr %7, 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) #5
  %41 = getelementptr inbounds %struct.macroParam, ptr %40, i32 0, i32 3
  store double %37, ptr %41, align 8, !tbaa !28
  %42 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 7
  %43 = load double, ptr %42, align 8, !tbaa !29
  %44 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %45 = load i64, ptr %7, align 8, !tbaa !11
  %46 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %44, i64 noundef %45) #5
  %47 = getelementptr inbounds %struct.macroParam, ptr %46, i32 0, i32 5
  store double %43, ptr %47, align 8, !tbaa !30
  %48 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %49 = load i64, ptr %7, align 8, !tbaa !11
  %50 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %48, i64 noundef %49) #5
  %51 = getelementptr inbounds %struct.macroParam, ptr %50, i32 0, i32 6
  store double 0.000000e+00, ptr %51, align 8, !tbaa !31
  %52 = getelementptr inbounds %struct.macroParam, ptr %1, i32 0, i32 7
  %53 = load double, ptr %52, align 8, !tbaa !29
  %54 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %55 = load i64, ptr %7, align 8, !tbaa !11
  %56 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %54, i64 noundef %55) #5
  %57 = getelementptr inbounds %struct.macroParam, ptr %56, i32 0, i32 7
  store double %53, ptr %57, align 8, !tbaa !29
  %58 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 5
  %59 = getelementptr inbounds %struct.solverParams, ptr %58, i32 0, i32 3
  %60 = load double, ptr %59, align 8, !tbaa !32
  %61 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %62 = load i64, ptr %7, 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) #5
  %64 = getelementptr inbounds %struct.macroParam, ptr %63, i32 0, i32 4
  %65 = load double, ptr %64, align 8, !tbaa !13
  %66 = fmul double %60, %65
  %67 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %68 = load i64, ptr %7, align 8, !tbaa !11
  %69 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %68) #5
  %70 = getelementptr inbounds %struct.macroParam, ptr %69, i32 0, i32 3
  %71 = load double, ptr %70, align 8, !tbaa !28
  %72 = fdiv double %66, %71
  %73 = call double @sqrt(double noundef %72) #5
  %74 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %75 = load i64, ptr %7, align 8, !tbaa !11
  %76 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %74, i64 noundef %75) #5
  %77 = getelementptr inbounds %struct.macroParam, ptr %76, i32 0, i32 10
  store double %73, ptr %77, align 8, !tbaa !41
  br label %78

78:                                               ; preds = %23
  %79 = load i64, ptr %7, align 8, !tbaa !11
  %80 = add i64 %79, 1
  store i64 %80, ptr %7, align 8, !tbaa !11
  br label %16, !llvm.loop !42

81:                                               ; preds = %22
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %82 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %83 = call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %82) #5
  %84 = udiv i64 %83, 2
  store i64 %84, ptr %8, align 8, !tbaa !11
  br label %85

85:                                               ; preds = %146, %81
  %86 = load i64, ptr %8, align 8, !tbaa !11
  %87 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %88 = call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %87) #5
  %89 = icmp ult i64 %86, %88
  br i1 %89, label %91, label %90

90:                                               ; preds = %85
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  br label %149

91:                                               ; preds = %85
  %92 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 4
  %93 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %94 = load i64, ptr %8, align 8, !tbaa !11
  %95 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %93, i64 noundef %94) #5
  %96 = getelementptr inbounds %struct.macroParam, ptr %95, i32 0, i32 0
  %97 = call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %96, ptr noundef nonnull align 8 dereferenceable(28) %92)
  %98 = getelementptr inbounds %struct.macroParam, ptr %2, i32 0, i32 4
  %99 = load double, ptr %98, align 8, !tbaa !13
  %100 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %101 = load i64, ptr %8, align 8, !tbaa !11
  %102 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %100, i64 noundef %101) #5
  %103 = getelementptr inbounds %struct.macroParam, ptr %102, i32 0, i32 4
  store double %99, ptr %103, align 8, !tbaa !13
  %104 = getelementptr inbounds %struct.macroParam, ptr %2, i32 0, i32 3
  %105 = load double, ptr %104, align 8, !tbaa !28
  %106 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %107 = load i64, ptr %8, align 8, !tbaa !11
  %108 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %107) #5
  %109 = getelementptr inbounds %struct.macroParam, ptr %108, i32 0, i32 3
  store double %105, ptr %109, align 8, !tbaa !28
  %110 = getelementptr inbounds %struct.macroParam, ptr %2, i32 0, i32 7
  %111 = load double, ptr %110, align 8, !tbaa !29
  %112 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %113 = load i64, ptr %8, align 8, !tbaa !11
  %114 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %113) #5
  %115 = getelementptr inbounds %struct.macroParam, ptr %114, i32 0, i32 5
  store double %111, ptr %115, align 8, !tbaa !30
  %116 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %117 = load i64, ptr %8, align 8, !tbaa !11
  %118 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %116, i64 noundef %117) #5
  %119 = getelementptr inbounds %struct.macroParam, ptr %118, i32 0, i32 6
  store double 0.000000e+00, ptr %119, align 8, !tbaa !31
  %120 = getelementptr inbounds %struct.macroParam, ptr %2, i32 0, i32 7
  %121 = load double, ptr %120, align 8, !tbaa !29
  %122 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %123 = load i64, ptr %8, align 8, !tbaa !11
  %124 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %122, i64 noundef %123) #5
  %125 = getelementptr inbounds %struct.macroParam, ptr %124, i32 0, i32 7
  store double %121, ptr %125, align 8, !tbaa !29
  %126 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 5
  %127 = getelementptr inbounds %struct.solverParams, ptr %126, i32 0, i32 3
  %128 = load double, ptr %127, align 8, !tbaa !32
  %129 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %130 = load i64, ptr %8, align 8, !tbaa !11
  %131 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %129, i64 noundef %130) #5
  %132 = getelementptr inbounds %struct.macroParam, ptr %131, i32 0, i32 4
  %133 = load double, ptr %132, align 8, !tbaa !13
  %134 = fmul double %128, %133
  %135 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %136 = load i64, ptr %8, align 8, !tbaa !11
  %137 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %135, i64 noundef %136) #5
  %138 = getelementptr inbounds %struct.macroParam, ptr %137, i32 0, i32 3
  %139 = load double, ptr %138, align 8, !tbaa !28
  %140 = fdiv double %134, %139
  %141 = call double @sqrt(double noundef %140) #5
  %142 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %143 = load i64, ptr %8, align 8, !tbaa !11
  %144 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %142, i64 noundef %143) #5
  %145 = getelementptr inbounds %struct.macroParam, ptr %144, i32 0, i32 10
  store double %141, ptr %145, align 8, !tbaa !41
  br label %146

146:                                              ; preds = %91
  %147 = load i64, ptr %8, align 8, !tbaa !11
  %148 = add i64 %147, 1
  store i64 %148, ptr %8, align 8, !tbaa !11
  br label %85, !llvm.loop !44

149:                                              ; preds = %90
  %150 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 1
  %151 = load ptr, ptr %150, align 8, !tbaa !45
  %152 = getelementptr inbounds %struct.AbstractSolver, ptr %9, i32 0, i32 10
  %153 = load ptr, ptr %151, align 8, !tbaa !9
  %154 = getelementptr inbounds ptr, ptr %153, i64 10
  %155 = load ptr, ptr %154, align 8
  call void %155(ptr noundef nonnull align 8 dereferenceable(296) %151, ptr noundef nonnull align 8 dereferenceable(24) %152)
  ret void
}

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 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 88}
!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 112}
!30 = !{!14, !25, i64 96}
!31 = !{!14, !25, i64 104}
!32 = !{!33, !25, i64 88}
!33 = !{!"_ZTS14AbstractSolver", !6, i64 8, !6, i64 16, !6, i64 24, !15, i64 32, !34, i64 64, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !35, i64 168, !25, i64 192, !39, i64 200, !40, i64 224, !40, i64 225, !20, i64 228, !40, i64 232}
!34 = !{!"_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}
!35 = !{!"_ZTSSt6vectorI10macroParamSaIS0_EE", !36, i64 0}
!36 = !{!"_ZTSSt12_Vector_baseI10macroParamSaIS0_EE", !37, i64 0}
!37 = !{!"_ZTSNSt12_Vector_baseI10macroParamSaIS0_EE12_Vector_implE", !38, i64 0}
!38 = !{!"_ZTSNSt12_Vector_baseI10macroParamSaIS0_EE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!39 = !{!"_ZTS6Matrix", !21, i64 0}
!40 = !{!"bool", !7, i64 0}
!41 = !{!14, !25, i64 136}
!42 = distinct !{!42, !43}
!43 = !{!"llvm.loop.mustprogress"}
!44 = distinct !{!44, !43}
!45 = !{!33, !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"

; 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 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 nofree nounwind willreturn memory(write)
declare double @sqrt(double noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14AbstractSolver20setStartDistributionE10macroParamS0_(ptr noundef nonnull align 8 dereferenceable(233) %0, ptr noundef nonnull %1, ptr nocapture noundef readonly %2) local_unnamed_addr #3 align 2 {
  %4 = getelementptr inbounds i8, ptr %0, i64 32
  %5 = tail call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %4, ptr noundef nonnull align 8 dereferenceable(28) %1)
  %6 = load ptr, ptr %0, align 8, !tbaa !5
  %7 = getelementptr inbounds i8, ptr %6, i64 24
  %8 = load ptr, ptr %7, align 8
  tail call void %8(ptr noundef nonnull align 8 dereferenceable(233) %0)
  %9 = getelementptr inbounds i8, ptr %0, i64 168
  %10 = tail call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %.not = icmp ult i64 %10, 2
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %3
  %11 = getelementptr inbounds i8, ptr %1, i64 88
  %12 = getelementptr inbounds i8, ptr %1, i64 80
  %13 = getelementptr inbounds i8, ptr %1, i64 112
  %14 = getelementptr inbounds i8, ptr %0, i64 88
  br label %23

._crit_edge:                                      ; preds = %23, %3
  %15 = tail call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %16 = lshr i64 %15, 1
  %17 = tail call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %18 = icmp ult i64 %16, %17
  br i1 %18, label %.lr.ph26, label %._crit_edge27

.lr.ph26:                                         ; preds = %._crit_edge
  %19 = getelementptr inbounds i8, ptr %2, i64 88
  %20 = getelementptr inbounds i8, ptr %2, i64 80
  %21 = getelementptr inbounds i8, ptr %2, i64 112
  %22 = getelementptr inbounds i8, ptr %0, i64 88
  br label %61

23:                                               ; preds = %.lr.ph, %23
  %.02223 = phi i64 [ 0, %.lr.ph ], [ %52, %23 ]
  %24 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.02223) #4
  %25 = tail call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %24, ptr noundef nonnull align 8 dereferenceable(28) %4)
  %26 = load double, ptr %11, align 8, !tbaa !8
  %27 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.02223) #4
  %28 = getelementptr inbounds i8, ptr %27, i64 88
  store double %26, ptr %28, align 8, !tbaa !8
  %29 = load double, ptr %12, align 8, !tbaa !26
  %30 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.02223) #4
  %31 = getelementptr inbounds i8, ptr %30, i64 80
  store double %29, ptr %31, align 8, !tbaa !26
  %32 = load double, ptr %13, align 8, !tbaa !27
  %33 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.02223) #4
  %34 = getelementptr inbounds i8, ptr %33, i64 96
  store double %32, ptr %34, align 8, !tbaa !28
  %35 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.02223) #4
  %36 = getelementptr inbounds i8, ptr %35, i64 104
  store double 0.000000e+00, ptr %36, align 8, !tbaa !29
  %37 = load double, ptr %13, align 8, !tbaa !27
  %38 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.02223) #4
  %39 = getelementptr inbounds i8, ptr %38, i64 112
  store double %37, ptr %39, align 8, !tbaa !27
  %40 = load double, ptr %14, align 8, !tbaa !30
  %41 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.02223) #4
  %42 = getelementptr inbounds i8, ptr %41, i64 88
  %43 = load double, ptr %42, align 8, !tbaa !8
  %44 = fmul double %40, %43
  %45 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.02223) #4
  %46 = getelementptr inbounds i8, ptr %45, i64 80
  %47 = load double, ptr %46, align 8, !tbaa !26
  %48 = fdiv double %44, %47
  %49 = tail call double @sqrt(double noundef %48) #4
  %50 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.02223) #4
  %51 = getelementptr inbounds i8, ptr %50, i64 136
  store double %49, ptr %51, align 8, !tbaa !39
  %52 = add nuw nsw i64 %.02223, 1
  %53 = tail call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %54 = lshr i64 %53, 1
  %55 = icmp ult i64 %52, %54
  br i1 %55, label %23, label %._crit_edge, !llvm.loop !40

._crit_edge27:                                    ; preds = %61, %._crit_edge
  %56 = getelementptr inbounds i8, ptr %0, i64 8
  %57 = load ptr, ptr %56, align 8, !tbaa !42
  %58 = load ptr, ptr %57, align 8, !tbaa !5
  %59 = getelementptr inbounds i8, ptr %58, i64 80
  %60 = load ptr, ptr %59, align 8
  tail call void %60(ptr noundef nonnull align 8 dereferenceable(296) %57, ptr noundef nonnull align 8 dereferenceable(24) %9)
  ret void

61:                                               ; preds = %.lr.ph26, %61
  %.024 = phi i64 [ %16, %.lr.ph26 ], [ %90, %61 ]
  %62 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.024) #4
  %63 = tail call noundef nonnull align 8 dereferenceable(28) ptr @_ZN7MixtureaSERKS_(ptr noundef nonnull align 8 dereferenceable(28) %62, ptr noundef nonnull align 8 dereferenceable(28) %4)
  %64 = load double, ptr %19, align 8, !tbaa !8
  %65 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.024) #4
  %66 = getelementptr inbounds i8, ptr %65, i64 88
  store double %64, ptr %66, align 8, !tbaa !8
  %67 = load double, ptr %20, align 8, !tbaa !26
  %68 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.024) #4
  %69 = getelementptr inbounds i8, ptr %68, i64 80
  store double %67, ptr %69, align 8, !tbaa !26
  %70 = load double, ptr %21, align 8, !tbaa !27
  %71 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.024) #4
  %72 = getelementptr inbounds i8, ptr %71, i64 96
  store double %70, ptr %72, align 8, !tbaa !28
  %73 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.024) #4
  %74 = getelementptr inbounds i8, ptr %73, i64 104
  store double 0.000000e+00, ptr %74, align 8, !tbaa !29
  %75 = load double, ptr %21, align 8, !tbaa !27
  %76 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.024) #4
  %77 = getelementptr inbounds i8, ptr %76, i64 112
  store double %75, ptr %77, align 8, !tbaa !27
  %78 = load double, ptr %22, align 8, !tbaa !30
  %79 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.024) #4
  %80 = getelementptr inbounds i8, ptr %79, i64 88
  %81 = load double, ptr %80, align 8, !tbaa !8
  %82 = fmul double %78, %81
  %83 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.024) #4
  %84 = getelementptr inbounds i8, ptr %83, i64 80
  %85 = load double, ptr %84, align 8, !tbaa !26
  %86 = fdiv double %82, %85
  %87 = tail call double @sqrt(double noundef %86) #4
  %88 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %9, i64 noundef %.024) #4
  %89 = getelementptr inbounds i8, ptr %88, i64 136
  store double %87, ptr %89, align 8, !tbaa !39
  %90 = add nuw i64 %.024, 1
  %91 = tail call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %92 = icmp ult i64 %90, %91
  br i1 %92, label %61, label %._crit_edge27, !llvm.loop !43
}

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

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

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


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