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

; 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.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.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<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" }
%"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" }
%"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] }

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

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

; 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) #1 align 2

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

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

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

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

11:                                               ; preds = %171, %1
  %12 = load i32, ptr %4, align 4, !tbaa !11
  %13 = sext i32 %12 to i64
  %14 = load i64, ptr %3, align 8, !tbaa !9
  %15 = add i64 %14, 1
  %16 = icmp ult i64 %13, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %11
  store i32 2, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #4
  br label %174

18:                                               ; preds = %11
  %19 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 1
  %20 = load ptr, ptr %19, align 8, !tbaa !13
  %21 = load i32, ptr %4, align 4, !tbaa !11
  %22 = sext i32 %21 to i64
  %23 = load ptr, ptr %20, align 8, !tbaa !32
  %24 = getelementptr inbounds ptr, ptr %23, i64 4
  %25 = load ptr, ptr %24, align 8
  %26 = call noundef double %25(ptr noundef nonnull align 8 dereferenceable(296) %20, i64 noundef %22)
  %27 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %28 = load i32, ptr %4, align 4, !tbaa !11
  %29 = sext i32 %28 to i64
  %30 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %27, i64 noundef %29) #4
  %31 = getelementptr inbounds %struct.macroParam, ptr %30, i32 0, i32 5
  store double %26, ptr %31, align 8, !tbaa !34
  %32 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 1
  %33 = load ptr, ptr %32, align 8, !tbaa !13
  %34 = load i32, ptr %4, align 4, !tbaa !11
  %35 = sext i32 %34 to i64
  %36 = load ptr, ptr %33, align 8, !tbaa !32
  %37 = getelementptr inbounds ptr, ptr %36, i64 5
  %38 = load ptr, ptr %37, align 8
  %39 = call noundef double %38(ptr noundef nonnull align 8 dereferenceable(296) %33, i64 noundef %35)
  %40 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %41 = load i32, ptr %4, align 4, !tbaa !11
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %42) #4
  %44 = getelementptr inbounds %struct.macroParam, ptr %43, i32 0, i32 6
  store double %39, ptr %44, align 8, !tbaa !38
  %45 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 1
  %46 = load ptr, ptr %45, align 8, !tbaa !13
  %47 = load i32, ptr %4, align 4, !tbaa !11
  %48 = sext i32 %47 to i64
  %49 = load ptr, ptr %46, align 8, !tbaa !32
  %50 = getelementptr inbounds ptr, ptr %49, i64 3
  %51 = load ptr, ptr %50, align 8
  %52 = call noundef double %51(ptr noundef nonnull align 8 dereferenceable(296) %46, i64 noundef %48)
  %53 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %54 = load i32, ptr %4, align 4, !tbaa !11
  %55 = sext i32 %54 to i64
  %56 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %53, i64 noundef %55) #4
  %57 = getelementptr inbounds %struct.macroParam, ptr %56, i32 0, i32 7
  store double %52, ptr %57, align 8, !tbaa !39
  %58 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 1
  %59 = load ptr, ptr %58, align 8, !tbaa !13
  %60 = load i32, ptr %4, align 4, !tbaa !11
  %61 = sext i32 %60 to i64
  %62 = load ptr, ptr %59, align 8, !tbaa !32
  %63 = getelementptr inbounds ptr, ptr %62, i64 1
  %64 = load ptr, ptr %63, align 8
  %65 = call noundef double %64(ptr noundef nonnull align 8 dereferenceable(296) %59, i64 noundef %61)
  %66 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %67 = load i32, ptr %4, align 4, !tbaa !11
  %68 = sext i32 %67 to i64
  %69 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %66, i64 noundef %68) #4
  %70 = getelementptr inbounds %struct.macroParam, ptr %69, i32 0, i32 3
  store double %65, ptr %70, align 8, !tbaa !40
  %71 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 1
  %72 = load ptr, ptr %71, align 8, !tbaa !13
  %73 = load i32, ptr %4, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = load ptr, ptr %72, align 8, !tbaa !32
  %76 = getelementptr inbounds ptr, ptr %75, i64 0
  %77 = load ptr, ptr %76, align 8
  %78 = call noundef double %77(ptr noundef nonnull align 8 dereferenceable(296) %72, i64 noundef %74)
  %79 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %80 = load i32, ptr %4, align 4, !tbaa !11
  %81 = sext i32 %80 to i64
  %82 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %81) #4
  %83 = getelementptr inbounds %struct.macroParam, ptr %82, i32 0, i32 4
  store double %78, ptr %83, align 8, !tbaa !41
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  store i64 0, ptr %6, align 8, !tbaa !9
  br label %84

84:                                               ; preds = %131, %18
  %85 = load i64, ptr %6, align 8, !tbaa !9
  %86 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 4
  %87 = getelementptr inbounds %struct.Mixture, ptr %86, i32 0, i32 1
  %88 = load i32, ptr %87, align 8, !tbaa !42
  %89 = sext i32 %88 to i64
  %90 = icmp ult i64 %85, %89
  br i1 %90, label %92, label %91

91:                                               ; preds = %84
  store i32 5, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %134

92:                                               ; preds = %84
  %93 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 1
  %94 = load ptr, ptr %93, align 8, !tbaa !13
  %95 = load i32, ptr %4, align 4, !tbaa !11
  %96 = sext i32 %95 to i64
  %97 = load i64, ptr %6, align 8, !tbaa !9
  %98 = load ptr, ptr %94, align 8, !tbaa !32
  %99 = getelementptr inbounds ptr, ptr %98, i64 2
  %100 = load ptr, ptr %99, align 8
  %101 = call noundef double %100(ptr noundef nonnull align 8 dereferenceable(296) %94, i64 noundef %96, i64 noundef %97)
  %102 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %103 = load i32, ptr %4, align 4, !tbaa !11
  %104 = sext i32 %103 to i64
  %105 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %104) #4
  %106 = getelementptr inbounds %struct.macroParam, ptr %105, i32 0, i32 1
  %107 = load i64, ptr %6, align 8, !tbaa !9
  %108 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %106, i64 noundef %107) #4
  store double %101, ptr %108, align 8, !tbaa !43
  %109 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %110 = load i32, ptr %4, align 4, !tbaa !11
  %111 = sext i32 %110 to i64
  %112 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %109, i64 noundef %111) #4
  %113 = getelementptr inbounds %struct.macroParam, ptr %112, i32 0, i32 1
  %114 = load i64, ptr %6, align 8, !tbaa !9
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %113, i64 noundef %114) #4
  %116 = load double, ptr %115, align 8, !tbaa !43
  %117 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %118 = load i32, ptr %4, align 4, !tbaa !11
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %119) #4
  %121 = getelementptr inbounds %struct.macroParam, ptr %120, i32 0, i32 3
  %122 = load double, ptr %121, align 8, !tbaa !40
  %123 = fdiv double %116, %122
  %124 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %125 = load i32, ptr %4, align 4, !tbaa !11
  %126 = sext i32 %125 to i64
  %127 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %124, i64 noundef %126) #4
  %128 = getelementptr inbounds %struct.macroParam, ptr %127, i32 0, i32 2
  %129 = load i64, ptr %6, align 8, !tbaa !9
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %129) #4
  store double %123, ptr %130, align 8, !tbaa !43
  br label %131

131:                                              ; preds = %92
  %132 = load i64, ptr %6, align 8, !tbaa !9
  %133 = add i64 %132, 1
  store i64 %133, ptr %6, align 8, !tbaa !9
  br label %84, !llvm.loop !44

134:                                              ; preds = %91
  %135 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 5
  %136 = getelementptr inbounds %struct.solverParams, ptr %135, i32 0, i32 3
  %137 = load double, ptr %136, align 8, !tbaa !46
  %138 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %139 = load i32, ptr %4, align 4, !tbaa !11
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %140) #4
  %142 = getelementptr inbounds %struct.macroParam, ptr %141, i32 0, i32 4
  %143 = load double, ptr %142, align 8, !tbaa !41
  %144 = fmul double %137, %143
  %145 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %146 = load i32, ptr %4, align 4, !tbaa !11
  %147 = sext i32 %146 to i64
  %148 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %145, i64 noundef %147) #4
  %149 = getelementptr inbounds %struct.macroParam, ptr %148, i32 0, i32 3
  %150 = load double, ptr %149, align 8, !tbaa !40
  %151 = fdiv double %144, %150
  %152 = call double @sqrt(double noundef %151) #4
  %153 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %154 = load i32, ptr %4, align 4, !tbaa !11
  %155 = sext i32 %154 to i64
  %156 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %153, i64 noundef %155) #4
  %157 = getelementptr inbounds %struct.macroParam, ptr %156, i32 0, i32 10
  store double %152, ptr %157, align 8, !tbaa !47
  %158 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 1
  %159 = load ptr, ptr %158, align 8, !tbaa !13
  %160 = load i32, ptr %4, align 4, !tbaa !11
  %161 = sext i32 %160 to i64
  %162 = load ptr, ptr %159, align 8, !tbaa !32
  %163 = getelementptr inbounds ptr, ptr %162, i64 7
  %164 = load ptr, ptr %163, align 8
  %165 = call noundef double %164(ptr noundef nonnull align 8 dereferenceable(296) %159, i64 noundef %161)
  %166 = getelementptr inbounds %struct.AbstractSolver, ptr %7, i32 0, i32 10
  %167 = load i32, ptr %4, align 4, !tbaa !11
  %168 = sext i32 %167 to i64
  %169 = call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %168) #4
  %170 = getelementptr inbounds %struct.macroParam, ptr %169, i32 0, i32 8
  store double %165, ptr %170, align 8, !tbaa !48
  br label %171

171:                                              ; preds = %134
  %172 = load i32, ptr %4, align 4, !tbaa !11
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %4, align 4, !tbaa !11
  br label %11, !llvm.loop !49

174:                                              ; preds = %17
  call void @_ZN14AbstractSolver9useBorderEv(ptr noundef nonnull align 8 dereferenceable(233) %7)
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #4
  ret void
}

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

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

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

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


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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN14AbstractSolver12updatePointsEv(ptr noundef nonnull align 8 dereferenceable(233) %0) local_unnamed_addr #2 align 2 {
  %2 = getelementptr inbounds i8, ptr %0, i64 168
  %3 = tail call noundef i64 @_ZNKSt6vectorI10macroParamSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %2) #3
  %.not = icmp eq i64 %3, 0
  br i1 %.not, label %._crit_edge35, label %.lr.ph34

.lr.ph34:                                         ; preds = %1
  %4 = getelementptr inbounds i8, ptr %0, i64 8
  %5 = getelementptr inbounds i8, ptr %0, i64 56
  %6 = getelementptr inbounds i8, ptr %0, i64 88
  br label %7

._crit_edge35:                                    ; preds = %._crit_edge, %1
  tail call void @_ZN14AbstractSolver9useBorderEv(ptr noundef nonnull align 8 dereferenceable(233) %0)
  ret void

7:                                                ; preds = %.lr.ph34, %._crit_edge
  %indvars.iv = phi i64 [ 0, %.lr.ph34 ], [ %indvars.iv.next, %._crit_edge ]
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = load ptr, ptr %8, align 8, !tbaa !28
  %10 = getelementptr inbounds i8, ptr %9, i64 32
  %11 = load ptr, ptr %10, align 8
  %12 = tail call noundef double %11(ptr noundef nonnull align 8 dereferenceable(296) %8, i64 noundef %indvars.iv)
  %13 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %14 = getelementptr inbounds i8, ptr %13, i64 96
  store double %12, ptr %14, align 8, !tbaa !30
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  %16 = load ptr, ptr %15, align 8, !tbaa !28
  %17 = getelementptr inbounds i8, ptr %16, i64 40
  %18 = load ptr, ptr %17, align 8
  %19 = tail call noundef double %18(ptr noundef nonnull align 8 dereferenceable(296) %15, i64 noundef %indvars.iv)
  %20 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %21 = getelementptr inbounds i8, ptr %20, i64 104
  store double %19, ptr %21, align 8, !tbaa !35
  %22 = load ptr, ptr %4, align 8, !tbaa !5
  %23 = load ptr, ptr %22, align 8, !tbaa !28
  %24 = getelementptr inbounds i8, ptr %23, i64 24
  %25 = load ptr, ptr %24, align 8
  %26 = tail call noundef double %25(ptr noundef nonnull align 8 dereferenceable(296) %22, i64 noundef %indvars.iv)
  %27 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %28 = getelementptr inbounds i8, ptr %27, i64 112
  store double %26, ptr %28, align 8, !tbaa !36
  %29 = load ptr, ptr %4, align 8, !tbaa !5
  %30 = load ptr, ptr %29, align 8, !tbaa !28
  %31 = getelementptr inbounds i8, ptr %30, i64 8
  %32 = load ptr, ptr %31, align 8
  %33 = tail call noundef double %32(ptr noundef nonnull align 8 dereferenceable(296) %29, i64 noundef %indvars.iv)
  %34 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %35 = getelementptr inbounds i8, ptr %34, i64 80
  store double %33, ptr %35, align 8, !tbaa !37
  %36 = load ptr, ptr %4, align 8, !tbaa !5
  %37 = load ptr, ptr %36, align 8, !tbaa !28
  %38 = load ptr, ptr %37, align 8
  %39 = tail call noundef double %38(ptr noundef nonnull align 8 dereferenceable(296) %36, i64 noundef %indvars.iv)
  %40 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %41 = getelementptr inbounds i8, ptr %40, i64 88
  store double %39, ptr %41, align 8, !tbaa !38
  %42 = load i32, ptr %5, align 8, !tbaa !39
  %.not36 = icmp eq i32 %42, 0
  br i1 %.not36, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %7
  %43 = load double, ptr %6, align 8, !tbaa !40
  %44 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %45 = getelementptr inbounds i8, ptr %44, i64 88
  %46 = load double, ptr %45, align 8, !tbaa !38
  %47 = fmul double %43, %46
  %48 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %49 = getelementptr inbounds i8, ptr %48, i64 80
  %50 = load double, ptr %49, align 8, !tbaa !37
  %51 = fdiv double %47, %50
  %52 = tail call double @sqrt(double noundef %51) #3
  %53 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %54 = getelementptr inbounds i8, ptr %53, i64 136
  store double %52, ptr %54, align 8, !tbaa !41
  %55 = load ptr, ptr %4, align 8, !tbaa !5
  %56 = load ptr, ptr %55, align 8, !tbaa !28
  %57 = getelementptr inbounds i8, ptr %56, i64 56
  %58 = load ptr, ptr %57, align 8
  %59 = tail call noundef double %58(ptr noundef nonnull align 8 dereferenceable(296) %55, i64 noundef %indvars.iv)
  %60 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %61 = getelementptr inbounds i8, ptr %60, i64 120
  store double %59, ptr %61, align 8, !tbaa !42
  %indvars.iv.next = add nuw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %3
  br i1 %exitcond.not, label %._crit_edge35, label %7, !llvm.loop !43

.lr.ph:                                           ; preds = %7, %.lr.ph
  %.031 = phi i64 [ %81, %.lr.ph ], [ 0, %7 ]
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = load ptr, ptr %62, align 8, !tbaa !28
  %64 = getelementptr inbounds i8, ptr %63, i64 16
  %65 = load ptr, ptr %64, align 8
  %66 = tail call noundef double %65(ptr noundef nonnull align 8 dereferenceable(296) %62, i64 noundef %indvars.iv, i64 noundef %.031)
  %67 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %68 = getelementptr inbounds i8, ptr %67, i64 32
  %69 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %68, i64 noundef %.031) #3
  store double %66, ptr %69, align 8, !tbaa !45
  %70 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %71 = getelementptr inbounds i8, ptr %70, i64 32
  %72 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %71, i64 noundef %.031) #3
  %73 = load double, ptr %72, align 8, !tbaa !45
  %74 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %75 = getelementptr inbounds i8, ptr %74, i64 80
  %76 = load double, ptr %75, align 8, !tbaa !37
  %77 = fdiv double %73, %76
  %78 = tail call noundef nonnull align 8 dereferenceable(176) ptr @_ZNSt6vectorI10macroParamSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %2, i64 noundef %indvars.iv) #3
  %79 = getelementptr inbounds i8, ptr %78, i64 56
  %80 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIdSaIdEEixEm(ptr noundef nonnull align 8 dereferenceable(24) %79, i64 noundef %.031) #3
  store double %77, ptr %80, align 8, !tbaa !45
  %81 = add nuw i64 %.031, 1
  %82 = load i32, ptr %5, align 8, !tbaa !39
  %83 = sext i32 %82 to i64
  %84 = icmp ult i64 %81, %83
  br i1 %84, label %.lr.ph, label %._crit_edge, !llvm.loop !46
}

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

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 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 #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 = { 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 = !{!"_ZTS14AbstractSolver", !7, i64 8, !7, i64 16, !7, i64 24, !10, i64 32, !16, i64 64, !7, i64 136, !7, i64 144, !7, i64 152, !7, i64 160, !18, i64 168, !17, i64 192, !22, i64 200, !27, i64 224, !27, i64 225, !15, i64 228, !27, i64 232}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"_ZTS7Mixture", !11, i64 0, !15, 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", !7, i64 0, !7, i64 8, !7, i64 16}
!15 = !{!"int", !8, i64 0}
!16 = !{!"_ZTS12solverParams", !15, i64 0, !17, i64 8, !17, i64 16, !17, i64 24, !17, i64 32, !17, i64 40, !15, i64 48, !15, i64 52, !15, i64 56, !15, i64 60, !15, i64 64, !15, i64 68}
!17 = !{!"double", !8, i64 0}
!18 = !{!"_ZTSSt6vectorI10macroParamSaIS0_EE", !19, i64 0}
!19 = !{!"_ZTSSt12_Vector_baseI10macroParamSaIS0_EE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseI10macroParamSaIS0_EE12_Vector_implE", !21, i64 0}
!21 = !{!"_ZTSNSt12_Vector_baseI10macroParamSaIS0_EE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!22 = !{!"_ZTS6Matrix", !23, i64 0}
!23 = !{!"_ZTSSt6vectorIdSaIdEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIdSaIdEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIdSaIdEE17_Vector_impl_dataE", !7, i64 0, !7, i64 8, !7, i64 16}
!27 = !{!"bool", !8, i64 0}
!28 = !{!29, !29, i64 0}
!29 = !{!"vtable pointer", !9, i64 0}
!30 = !{!31, !17, i64 96}
!31 = !{!"_ZTS10macroParam", !10, i64 0, !23, i64 32, !23, i64 56, !17, i64 80, !17, i64 88, !17, i64 96, !17, i64 104, !17, i64 112, !17, i64 120, !17, i64 128, !17, i64 136, !32, i64 144}
!32 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !33, i64 0, !34, i64 8, !8, i64 16}
!33 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !7, i64 0}
!34 = !{!"long", !8, i64 0}
!35 = !{!31, !17, i64 104}
!36 = !{!31, !17, i64 112}
!37 = !{!31, !17, i64 80}
!38 = !{!31, !17, i64 88}
!39 = !{!6, !15, i64 56}
!40 = !{!6, !17, i64 88}
!41 = !{!31, !17, i64 136}
!42 = !{!31, !17, i64 120}
!43 = distinct !{!43, !44}
!44 = !{!"llvm.loop.mustprogress"}
!45 = !{!17, !17, i64 0}
!46 = distinct !{!46, !44}


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