; LLVM IR from artvns/SimpleFvm :: simplefvm/src/ResultsSaver/SimpleSaver (ActiveCellsParamsData)

; 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.resultssaver::ActiveCellsParamsData" = type { ptr, ptr, ptr }

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12resultssaver21ActiveCellsParamsData10outputDataERSt14basic_ofstreamIcSt11char_traitsIcEE(ptr noundef nonnull align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(248) %1) #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %7 = load ptr, ptr %3, align 8
  %8 = load ptr, ptr %4, align 8, !tbaa !5
  %9 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %8, ptr noundef @.str)
  %10 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %9, i8 noundef signext 10)
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  store i64 0, ptr %5, align 8, !tbaa !9
  br label %11

11:                                               ; preds = %98, %2
  %12 = load i64, ptr %5, align 8, !tbaa !9
  %13 = getelementptr inbounds %"class.resultssaver::ActiveCellsParamsData", ptr %7, i32 0, i32 2
  %14 = load ptr, ptr %13, align 8, !tbaa !11
  %15 = call noundef i64 @_ZNK10datastores17MeshBuildingStore20getActiveCellsAmountEv(ptr noundef nonnull align 8 dereferenceable(224) %14)
  %16 = icmp ult i64 %12, %15
  br i1 %16, label %18, label %17

17:                                               ; preds = %11
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  br label %101

18:                                               ; preds = %11
  %19 = load ptr, ptr %4, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.resultssaver::ActiveCellsParamsData", ptr %7, i32 0, i32 2
  %21 = load ptr, ptr %20, align 8, !tbaa !11
  %22 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore16getActiveCellNumEv(ptr noundef nonnull align 8 dereferenceable(224) %21)
  %23 = load i64, ptr %5, align 8, !tbaa !9
  %24 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtImE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %22, i64 noundef %23)
  %25 = load i64, ptr %24, align 8, !tbaa !9
  %26 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %19, i64 noundef %25)
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef @.str.1)
  %28 = load ptr, ptr %4, align 8, !tbaa !5
  %29 = getelementptr inbounds %"class.resultssaver::ActiveCellsParamsData", ptr %7, i32 0, i32 2
  %30 = load ptr, ptr %29, align 8, !tbaa !11
  %31 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore18getActiveCell_iPosEv(ptr noundef nonnull align 8 dereferenceable(224) %30)
  %32 = load i64, ptr %5, align 8, !tbaa !9
  %33 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtImE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %31, i64 noundef %32)
  %34 = load i64, ptr %33, align 8, !tbaa !9
  %35 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %28, i64 noundef %34)
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %35, ptr noundef @.str.1)
  %37 = load ptr, ptr %4, align 8, !tbaa !5
  %38 = getelementptr inbounds %"class.resultssaver::ActiveCellsParamsData", ptr %7, i32 0, i32 2
  %39 = load ptr, ptr %38, align 8, !tbaa !11
  %40 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore18getActiveCell_jPosEv(ptr noundef nonnull align 8 dereferenceable(224) %39)
  %41 = load i64, ptr %5, align 8, !tbaa !9
  %42 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtImE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %40, i64 noundef %41)
  %43 = load i64, ptr %42, align 8, !tbaa !9
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %37, i64 noundef %43)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef @.str.1)
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %46 = getelementptr inbounds %"class.resultssaver::ActiveCellsParamsData", ptr %7, i32 0, i32 2
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore16getActiveCellNumEv(ptr noundef nonnull align 8 dereferenceable(224) %47)
  %49 = load i64, ptr %5, align 8, !tbaa !9
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtImE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %48, i64 noundef %49)
  %51 = load i64, ptr %50, align 8, !tbaa !9
  %52 = sub i64 %51, 1
  store i64 %52, ptr %6, align 8, !tbaa !9
  %53 = load ptr, ptr %4, align 8, !tbaa !5
  %54 = getelementptr inbounds %"class.resultssaver::ActiveCellsParamsData", ptr %7, i32 0, i32 1
  %55 = load ptr, ptr %54, align 8, !tbaa !13
  %56 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores19MeshParametersStore6get_dXEv(ptr noundef nonnull align 8 dereferenceable(64) %55)
  %57 = load i64, ptr %6, align 8, !tbaa !9
  %58 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtIdE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %56, i64 noundef %57)
  %59 = load double, ptr %58, align 8, !tbaa !14
  %60 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %53, double noundef %59)
  %61 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %60, ptr noundef @.str.1)
  %62 = load ptr, ptr %4, align 8, !tbaa !5
  %63 = getelementptr inbounds %"class.resultssaver::ActiveCellsParamsData", ptr %7, i32 0, i32 1
  %64 = load ptr, ptr %63, align 8, !tbaa !13
  %65 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores19MeshParametersStore6get_dYEv(ptr noundef nonnull align 8 dereferenceable(64) %64)
  %66 = load i64, ptr %6, align 8, !tbaa !9
  %67 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtIdE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %65, i64 noundef %66)
  %68 = load double, ptr %67, align 8, !tbaa !14
  %69 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %62, double noundef %68)
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %69, ptr noundef @.str.1)
  %71 = load ptr, ptr %4, align 8, !tbaa !5
  %72 = getelementptr inbounds %"class.resultssaver::ActiveCellsParamsData", ptr %7, i32 0, i32 0
  %73 = load ptr, ptr %72, align 8, !tbaa !16
  %74 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores11FieldsStore17get_uCellCenteredEv(ptr noundef nonnull align 8 dereferenceable(160) %73)
  %75 = load i64, ptr %6, align 8, !tbaa !9
  %76 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtIdE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %74, i64 noundef %75)
  %77 = load double, ptr %76, align 8, !tbaa !14
  %78 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %71, double noundef %77)
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %78, ptr noundef @.str.1)
  %80 = load ptr, ptr %4, align 8, !tbaa !5
  %81 = getelementptr inbounds %"class.resultssaver::ActiveCellsParamsData", ptr %7, i32 0, i32 0
  %82 = load ptr, ptr %81, align 8, !tbaa !16
  %83 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores11FieldsStore17get_vCellCenteredEv(ptr noundef nonnull align 8 dereferenceable(160) %82)
  %84 = load i64, ptr %6, align 8, !tbaa !9
  %85 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtIdE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %83, i64 noundef %84)
  %86 = load double, ptr %85, align 8, !tbaa !14
  %87 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %80, double noundef %86)
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %87, ptr noundef @.str.1)
  %89 = load ptr, ptr %4, align 8, !tbaa !5
  %90 = getelementptr inbounds %"class.resultssaver::ActiveCellsParamsData", ptr %7, i32 0, i32 0
  %91 = load ptr, ptr %90, align 8, !tbaa !16
  %92 = call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores11FieldsStore5get_pEv(ptr noundef nonnull align 8 dereferenceable(160) %91)
  %93 = load i64, ptr %6, align 8, !tbaa !9
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtIdE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %92, i64 noundef %93)
  %95 = load double, ptr %94, align 8, !tbaa !14
  %96 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %89, double noundef %95)
  %97 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %96, ptr noundef @.str.2)
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  br label %98

98:                                               ; preds = %18
  %99 = load i64, ptr %5, align 8, !tbaa !9
  %100 = add i64 %99, 1
  store i64 %100, ptr %5, align 8, !tbaa !9
  br label %11, !llvm.loop !17

101:                                              ; preds = %17
  ret void
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) #1

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

declare noundef i64 @_ZNK10datastores17MeshBuildingStore20getActiveCellsAmountEv(ptr noundef nonnull align 8 dereferenceable(224)) #3

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore16getActiveCellNumEv(ptr noundef nonnull align 8 dereferenceable(224)) #3

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore18getActiveCell_iPosEv(ptr noundef nonnull align 8 dereferenceable(224)) #3

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore18getActiveCell_jPosEv(ptr noundef nonnull align 8 dereferenceable(224)) #3

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) #0 align 2

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores19MeshParametersStore6get_dXEv(ptr noundef nonnull align 8 dereferenceable(64)) #3

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores19MeshParametersStore6get_dYEv(ptr noundef nonnull align 8 dereferenceable(64)) #3

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores11FieldsStore17get_uCellCenteredEv(ptr noundef nonnull align 8 dereferenceable(160)) #3

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores11FieldsStore17get_vCellCenteredEv(ptr noundef nonnull align 8 dereferenceable(160)) #3

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores11FieldsStore5get_pEv(ptr noundef nonnull align 8 dereferenceable(160)) #3

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

attributes #0 = { mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { 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, !6, i64 16}
!12 = !{!"_ZTSN12resultssaver21ActiveCellsParamsDataE", !6, i64 0, !6, i64 8, !6, i64 16}
!13 = !{!12, !6, i64 8}
!14 = !{!15, !15, i64 0}
!15 = !{!"double", !7, i64 0}
!16 = !{!12, !6, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [37 x i8], align 1
@.str.1 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12resultssaver21ActiveCellsParamsData10outputDataERSt14basic_ofstreamIcSt11char_traitsIcEE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(24) %0, ptr noundef nonnull align 8 dereferenceable(248) %1) local_unnamed_addr #0 align 2 {
  %3 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull @.str)
  %4 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %3, i8 noundef signext 10)
  %5 = getelementptr inbounds i8, ptr %0, i64 16
  %6 = load ptr, ptr %5, align 8, !tbaa !5
  %7 = tail call noundef i64 @_ZNK10datastores17MeshBuildingStore20getActiveCellsAmountEv(ptr noundef nonnull align 8 dereferenceable(224) %6)
  %.not = icmp eq i64 %7, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %2
  %8 = getelementptr inbounds i8, ptr %0, i64 8
  br label %9

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

9:                                                ; preds = %.lr.ph, %9
  %.020 = phi i64 [ 0, %.lr.ph ], [ %63, %9 ]
  %10 = load ptr, ptr %5, align 8, !tbaa !5
  %11 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore16getActiveCellNumEv(ptr noundef nonnull align 8 dereferenceable(224) %10)
  %12 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtImE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %11, i64 noundef %.020)
  %13 = load i64, ptr %12, align 8, !tbaa !10
  %14 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %1, i64 noundef %13)
  %15 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %14, ptr noundef nonnull @.str.1)
  %16 = load ptr, ptr %5, align 8, !tbaa !5
  %17 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore18getActiveCell_iPosEv(ptr noundef nonnull align 8 dereferenceable(224) %16)
  %18 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtImE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %17, i64 noundef %.020)
  %19 = load i64, ptr %18, align 8, !tbaa !10
  %20 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %1, i64 noundef %19)
  %21 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %20, ptr noundef nonnull @.str.1)
  %22 = load ptr, ptr %5, align 8, !tbaa !5
  %23 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore18getActiveCell_jPosEv(ptr noundef nonnull align 8 dereferenceable(224) %22)
  %24 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtImE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %23, i64 noundef %.020)
  %25 = load i64, ptr %24, align 8, !tbaa !10
  %26 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %1, i64 noundef %25)
  %27 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %26, ptr noundef nonnull @.str.1)
  %28 = load ptr, ptr %5, align 8, !tbaa !5
  %29 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore16getActiveCellNumEv(ptr noundef nonnull align 8 dereferenceable(224) %28)
  %30 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtImE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %29, i64 noundef %.020)
  %31 = load i64, ptr %30, align 8, !tbaa !10
  %32 = add i64 %31, -1
  %33 = load ptr, ptr %8, align 8, !tbaa !12
  %34 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores19MeshParametersStore6get_dXEv(ptr noundef nonnull align 8 dereferenceable(64) %33)
  %35 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtIdE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %34, i64 noundef %32)
  %36 = load double, ptr %35, align 8, !tbaa !13
  %37 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %1, double noundef %36)
  %38 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %37, ptr noundef nonnull @.str.1)
  %39 = load ptr, ptr %8, align 8, !tbaa !12
  %40 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores19MeshParametersStore6get_dYEv(ptr noundef nonnull align 8 dereferenceable(64) %39)
  %41 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtIdE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %40, i64 noundef %32)
  %42 = load double, ptr %41, align 8, !tbaa !13
  %43 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %1, double noundef %42)
  %44 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %43, ptr noundef nonnull @.str.1)
  %45 = load ptr, ptr %0, align 8, !tbaa !15
  %46 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores11FieldsStore17get_uCellCenteredEv(ptr noundef nonnull align 8 dereferenceable(160) %45)
  %47 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtIdE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %46, i64 noundef %32)
  %48 = load double, ptr %47, align 8, !tbaa !13
  %49 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %1, double noundef %48)
  %50 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull @.str.1)
  %51 = load ptr, ptr %0, align 8, !tbaa !15
  %52 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores11FieldsStore17get_vCellCenteredEv(ptr noundef nonnull align 8 dereferenceable(160) %51)
  %53 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtIdE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %52, i64 noundef %32)
  %54 = load double, ptr %53, align 8, !tbaa !13
  %55 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %1, double noundef %54)
  %56 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %55, ptr noundef nonnull @.str.1)
  %57 = load ptr, ptr %0, align 8, !tbaa !15
  %58 = tail call noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores11FieldsStore5get_pEv(ptr noundef nonnull align 8 dereferenceable(160) %57)
  %59 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZN10datastores8ArrayAdtIdE8getValueEm(ptr noundef nonnull align 8 dereferenceable(32) %58, i64 noundef %32)
  %60 = load double, ptr %59, align 8, !tbaa !13
  %61 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %1, double noundef %60)
  %62 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %61, ptr noundef nonnull @.str.2)
  %63 = add nuw i64 %.020, 1
  %64 = load ptr, ptr %5, align 8, !tbaa !5
  %65 = tail call noundef i64 @_ZNK10datastores17MeshBuildingStore20getActiveCellsAmountEv(ptr noundef nonnull align 8 dereferenceable(224) %64)
  %66 = icmp ult i64 %63, %65
  br i1 %66, label %9, label %._crit_edge, !llvm.loop !16
}

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8), i8 noundef signext) local_unnamed_addr #1

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8), ptr noundef) local_unnamed_addr #1

declare noundef i64 @_ZNK10datastores17MeshBuildingStore20getActiveCellsAmountEv(ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #2

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore16getActiveCellNumEv(ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #2

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore18getActiveCell_iPosEv(ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores17MeshBuildingStore18getActiveCell_jPosEv(ptr noundef nonnull align 8 dereferenceable(224)) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8), double noundef) local_unnamed_addr #0 align 2

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores19MeshParametersStore6get_dXEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2

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

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores19MeshParametersStore6get_dYEv(ptr noundef nonnull align 8 dereferenceable(64)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores11FieldsStore17get_uCellCenteredEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores11FieldsStore17get_vCellCenteredEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #2

declare noundef nonnull align 8 dereferenceable(32) ptr @_ZN10datastores11FieldsStore5get_pEv(ptr noundef nonnull align 8 dereferenceable(160)) local_unnamed_addr #2

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

!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 16}
!6 = !{!"_ZTSN12resultssaver21ActiveCellsParamsDataE", !7, i64 0, !7, i64 8, !7, i64 16}
!7 = !{!"any pointer", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!11, !11, i64 0}
!11 = !{!"long", !8, i64 0}
!12 = !{!6, !7, i64 8}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !8, i64 0}
!15 = !{!6, !7, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}


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