; LLVM IR from artvns/SimpleFvm :: simplefvm/src/FVMSolver/CoeffsPartsVelocity/SourceTerm (StaticWallSource)

; 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.fvmsolver::StaticWallSource" = type { %"class.fvmsolver::AbstractSource", %"class.std::unique_ptr", ptr, double, double, double, double, i32, i32, i32, i32 }
%"class.fvmsolver::AbstractSource" = type { ptr, double, double }
%"class.std::unique_ptr" = type { %"struct.std::__uniq_ptr_data" }
%"struct.std::__uniq_ptr_data" = type { %"class.std::__uniq_ptr_impl" }
%"class.std::__uniq_ptr_impl" = type { %"class.std::tuple" }
%"class.std::tuple" = type { %"struct.std::_Tuple_impl" }
%"struct.std::_Tuple_impl" = type { %"struct.std::_Head_base.1" }
%"struct.std::_Head_base.1" = type { ptr }

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN9fvmsolver16StaticWallSource9calculateEm(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef %1) unnamed_addr #0 align 2 {
  %3 = alloca ptr, align 8
  %4 = alloca i64, align 8
  %5 = alloca i64, align 8
  %6 = alloca i64, align 8
  %7 = alloca i64, align 8
  %8 = alloca i64, align 8
  %9 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store i64 %1, ptr %4, align 8, !tbaa !9
  %10 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %5) #4
  %11 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 2
  %12 = load ptr, ptr %11, align 8, !tbaa !11
  %13 = load i64, ptr %4, align 8, !tbaa !9
  %14 = call noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellpEm(ptr noundef nonnull align 8 dereferenceable(48) %12, i64 noundef %13)
  %15 = sub i64 %14, 1
  store i64 %15, ptr %5, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #4
  %16 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 2
  %17 = load ptr, ptr %16, align 8, !tbaa !11
  %18 = load i64, ptr %4, align 8, !tbaa !9
  %19 = call noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellwEm(ptr noundef nonnull align 8 dereferenceable(48) %17, i64 noundef %18)
  %20 = sub i64 %19, 1
  store i64 %20, ptr %6, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #4
  %21 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 2
  %22 = load ptr, ptr %21, align 8, !tbaa !11
  %23 = load i64, ptr %4, align 8, !tbaa !9
  %24 = call noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCelleEm(ptr noundef nonnull align 8 dereferenceable(48) %22, i64 noundef %23)
  %25 = sub i64 %24, 1
  store i64 %25, ptr %7, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #4
  %26 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 2
  %27 = load ptr, ptr %26, align 8, !tbaa !11
  %28 = load i64, ptr %4, align 8, !tbaa !9
  %29 = call noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellnEm(ptr noundef nonnull align 8 dereferenceable(48) %27, i64 noundef %28)
  %30 = sub i64 %29, 1
  store i64 %30, ptr %8, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #4
  %31 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 2
  %32 = load ptr, ptr %31, align 8, !tbaa !11
  %33 = load i64, ptr %4, align 8, !tbaa !9
  %34 = call noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellsEm(ptr noundef nonnull align 8 dereferenceable(48) %32, i64 noundef %33)
  %35 = sub i64 %34, 1
  store i64 %35, ptr %9, align 8, !tbaa !9
  %36 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !11
  %38 = load i64, ptr %6, align 8, !tbaa !9
  %39 = call noundef i32 @_ZNK9fvmsolver18AbstractSourcePort11getCellTypeEm(ptr noundef nonnull align 8 dereferenceable(48) %37, i64 noundef %38)
  %40 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 7
  store i32 %39, ptr %40, align 8, !tbaa !22
  %41 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 2
  %42 = load ptr, ptr %41, align 8, !tbaa !11
  %43 = load i64, ptr %7, align 8, !tbaa !9
  %44 = call noundef i32 @_ZNK9fvmsolver18AbstractSourcePort11getCellTypeEm(ptr noundef nonnull align 8 dereferenceable(48) %42, i64 noundef %43)
  %45 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 8
  store i32 %44, ptr %45, align 4, !tbaa !23
  %46 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 2
  %47 = load ptr, ptr %46, align 8, !tbaa !11
  %48 = load i64, ptr %8, align 8, !tbaa !9
  %49 = call noundef i32 @_ZNK9fvmsolver18AbstractSourcePort11getCellTypeEm(ptr noundef nonnull align 8 dereferenceable(48) %47, i64 noundef %48)
  %50 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 9
  store i32 %49, ptr %50, align 8, !tbaa !24
  %51 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 2
  %52 = load ptr, ptr %51, align 8, !tbaa !11
  %53 = load i64, ptr %9, align 8, !tbaa !9
  %54 = call noundef i32 @_ZNK9fvmsolver18AbstractSourcePort11getCellTypeEm(ptr noundef nonnull align 8 dereferenceable(48) %52, i64 noundef %53)
  %55 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 10
  store i32 %54, ptr %55, align 4, !tbaa !25
  %56 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 2
  %57 = load ptr, ptr %56, align 8, !tbaa !11
  %58 = load i64, ptr %5, align 8, !tbaa !9
  %59 = call noundef double @_ZNK9fvmsolver18AbstractSourcePort6get_dXEm(ptr noundef nonnull align 8 dereferenceable(48) %57, i64 noundef %58)
  %60 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 5
  store double %59, ptr %60, align 8, !tbaa !26
  %61 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 2
  %62 = load ptr, ptr %61, align 8, !tbaa !11
  %63 = load i64, ptr %5, align 8, !tbaa !9
  %64 = call noundef double @_ZNK9fvmsolver18AbstractSourcePort6get_dYEm(ptr noundef nonnull align 8 dereferenceable(48) %62, i64 noundef %63)
  %65 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 6
  store double %64, ptr %65, align 8, !tbaa !27
  %66 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !11
  %68 = call noundef double @_ZNK9fvmsolver18AbstractSourcePort5getMUEv(ptr noundef nonnull align 8 dereferenceable(48) %67)
  %69 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 3
  store double %68, ptr %69, align 8, !tbaa !28
  %70 = getelementptr inbounds %"class.fvmsolver::AbstractSource", ptr %10, i32 0, i32 1
  store double 0.000000e+00, ptr %70, align 8, !tbaa !29
  %71 = getelementptr inbounds %"class.fvmsolver::AbstractSource", ptr %10, i32 0, i32 2
  store double 0.000000e+00, ptr %71, align 8, !tbaa !30
  %72 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 7
  %73 = load i32, ptr %72, align 8, !tbaa !22
  %74 = icmp eq i32 2, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %2
  call void @_ZN9fvmsolver16StaticWallSource17calculateForVMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %10)
  br label %76

76:                                               ; preds = %75, %2
  %77 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 8
  %78 = load i32, ptr %77, align 4, !tbaa !23
  %79 = icmp eq i32 2, %78
  br i1 %79, label %80, label %81

80:                                               ; preds = %76
  call void @_ZN9fvmsolver16StaticWallSource17calculateForVMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %10)
  br label %81

81:                                               ; preds = %80, %76
  %82 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 9
  %83 = load i32, ptr %82, align 8, !tbaa !24
  %84 = icmp eq i32 2, %83
  br i1 %84, label %85, label %86

85:                                               ; preds = %81
  call void @_ZN9fvmsolver16StaticWallSource17calculateForUMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %10)
  br label %86

86:                                               ; preds = %85, %81
  %87 = getelementptr inbounds %"class.fvmsolver::StaticWallSource", ptr %10, i32 0, i32 10
  %88 = load i32, ptr %87, align 4, !tbaa !25
  %89 = icmp eq i32 2, %88
  br i1 %89, label %90, label %91

90:                                               ; preds = %86
  call void @_ZN9fvmsolver16StaticWallSource17calculateForUMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %10)
  br label %91

91:                                               ; preds = %90, %86
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr %5) #4
  ret void
}

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

declare noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellpEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) #2

declare noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellwEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) #2

declare noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCelleEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) #2

declare noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellnEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) #2

declare noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellsEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) #2

declare noundef i32 @_ZNK9fvmsolver18AbstractSourcePort11getCellTypeEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) #2

declare noundef double @_ZNK9fvmsolver18AbstractSourcePort6get_dXEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) #2

declare noundef double @_ZNK9fvmsolver18AbstractSourcePort6get_dYEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) #2

declare noundef double @_ZNK9fvmsolver18AbstractSourcePort5getMUEv(ptr noundef nonnull align 8 dereferenceable(48)) #2

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

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

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

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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" }
attributes #3 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 32}
!12 = !{!"_ZTSN9fvmsolver16StaticWallSourceE", !13, i64 0, !15, i64 24, !6, i64 32, !14, i64 40, !14, i64 48, !14, i64 56, !14, i64 64, !21, i64 72, !21, i64 76, !21, i64 80, !21, i64 84}
!13 = !{!"_ZTSN9fvmsolver14AbstractSourceE", !14, i64 8, !14, i64 16}
!14 = !{!"double", !7, i64 0}
!15 = !{!"_ZTSSt10unique_ptrIN9fvmsolver18AbstractSourcePortESt14default_deleteIS1_EE", !16, i64 0}
!16 = !{!"_ZTSSt15__uniq_ptr_dataIN9fvmsolver18AbstractSourcePortESt14default_deleteIS1_ELb1ELb1EE", !17, i64 0}
!17 = !{!"_ZTSSt15__uniq_ptr_implIN9fvmsolver18AbstractSourcePortESt14default_deleteIS1_EE", !18, i64 0}
!18 = !{!"_ZTSSt5tupleIJPN9fvmsolver18AbstractSourcePortESt14default_deleteIS1_EEE", !19, i64 0}
!19 = !{!"_ZTSSt11_Tuple_implILm0EJPN9fvmsolver18AbstractSourcePortESt14default_deleteIS1_EEE", !20, i64 0}
!20 = !{!"_ZTSSt10_Head_baseILm0EPN9fvmsolver18AbstractSourcePortELb0EE", !6, i64 0}
!21 = !{!"_ZTSN9fvmsolver21EnumAdjacentCellTypesE", !7, i64 0}
!22 = !{!12, !21, i64 72}
!23 = !{!12, !21, i64 76}
!24 = !{!12, !21, i64 80}
!25 = !{!12, !21, i64 84}
!26 = !{!12, !14, i64 56}
!27 = !{!12, !14, i64 64}
!28 = !{!12, !14, i64 40}
!29 = !{!13, !14, i64 8}
!30 = !{!13, !14, i64 16}


; 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 uwtable
define dso_local void @_ZN9fvmsolver16StaticWallSource9calculateEm(ptr noundef nonnull align 8 dereferenceable(88) %0, i64 noundef %1) unnamed_addr #0 align 2 {
  %3 = getelementptr inbounds i8, ptr %0, i64 32
  %4 = load ptr, ptr %3, align 8, !tbaa !5
  %5 = tail call noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellpEm(ptr noundef nonnull align 8 dereferenceable(48) %4, i64 noundef %1)
  %6 = add i64 %5, -1
  %7 = load ptr, ptr %3, align 8, !tbaa !5
  %8 = tail call noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellwEm(ptr noundef nonnull align 8 dereferenceable(48) %7, i64 noundef %1)
  %9 = add i64 %8, -1
  %10 = load ptr, ptr %3, align 8, !tbaa !5
  %11 = tail call noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCelleEm(ptr noundef nonnull align 8 dereferenceable(48) %10, i64 noundef %1)
  %12 = add i64 %11, -1
  %13 = load ptr, ptr %3, align 8, !tbaa !5
  %14 = tail call noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellnEm(ptr noundef nonnull align 8 dereferenceable(48) %13, i64 noundef %1)
  %15 = add i64 %14, -1
  %16 = load ptr, ptr %3, align 8, !tbaa !5
  %17 = tail call noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellsEm(ptr noundef nonnull align 8 dereferenceable(48) %16, i64 noundef %1)
  %18 = add i64 %17, -1
  %19 = load ptr, ptr %3, align 8, !tbaa !5
  %20 = tail call noundef i32 @_ZNK9fvmsolver18AbstractSourcePort11getCellTypeEm(ptr noundef nonnull align 8 dereferenceable(48) %19, i64 noundef %9)
  %21 = getelementptr inbounds i8, ptr %0, i64 72
  store i32 %20, ptr %21, align 8, !tbaa !19
  %22 = load ptr, ptr %3, align 8, !tbaa !5
  %23 = tail call noundef i32 @_ZNK9fvmsolver18AbstractSourcePort11getCellTypeEm(ptr noundef nonnull align 8 dereferenceable(48) %22, i64 noundef %12)
  %24 = getelementptr inbounds i8, ptr %0, i64 76
  store i32 %23, ptr %24, align 4, !tbaa !20
  %25 = load ptr, ptr %3, align 8, !tbaa !5
  %26 = tail call noundef i32 @_ZNK9fvmsolver18AbstractSourcePort11getCellTypeEm(ptr noundef nonnull align 8 dereferenceable(48) %25, i64 noundef %15)
  %27 = getelementptr inbounds i8, ptr %0, i64 80
  store i32 %26, ptr %27, align 8, !tbaa !21
  %28 = load ptr, ptr %3, align 8, !tbaa !5
  %29 = tail call noundef i32 @_ZNK9fvmsolver18AbstractSourcePort11getCellTypeEm(ptr noundef nonnull align 8 dereferenceable(48) %28, i64 noundef %18)
  %30 = getelementptr inbounds i8, ptr %0, i64 84
  store i32 %29, ptr %30, align 4, !tbaa !22
  %31 = load ptr, ptr %3, align 8, !tbaa !5
  %32 = tail call noundef double @_ZNK9fvmsolver18AbstractSourcePort6get_dXEm(ptr noundef nonnull align 8 dereferenceable(48) %31, i64 noundef %6)
  %33 = getelementptr inbounds i8, ptr %0, i64 56
  store double %32, ptr %33, align 8, !tbaa !23
  %34 = load ptr, ptr %3, align 8, !tbaa !5
  %35 = tail call noundef double @_ZNK9fvmsolver18AbstractSourcePort6get_dYEm(ptr noundef nonnull align 8 dereferenceable(48) %34, i64 noundef %6)
  %36 = getelementptr inbounds i8, ptr %0, i64 64
  store double %35, ptr %36, align 8, !tbaa !24
  %37 = load ptr, ptr %3, align 8, !tbaa !5
  %38 = tail call noundef double @_ZNK9fvmsolver18AbstractSourcePort5getMUEv(ptr noundef nonnull align 8 dereferenceable(48) %37)
  %39 = getelementptr inbounds i8, ptr %0, i64 40
  store double %38, ptr %39, align 8, !tbaa !25
  %40 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %40, i8 0, i64 16, i1 false)
  %41 = load i32, ptr %21, align 8, !tbaa !19
  %42 = icmp eq i32 %41, 2
  br i1 %42, label %43, label %44

43:                                               ; preds = %2
  tail call void @_ZN9fvmsolver16StaticWallSource17calculateForVMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br label %44

44:                                               ; preds = %43, %2
  %45 = load i32, ptr %24, align 4, !tbaa !20
  %46 = icmp eq i32 %45, 2
  br i1 %46, label %47, label %48

47:                                               ; preds = %44
  tail call void @_ZN9fvmsolver16StaticWallSource17calculateForVMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br label %48

48:                                               ; preds = %47, %44
  %49 = load i32, ptr %27, align 8, !tbaa !21
  %50 = icmp eq i32 %49, 2
  br i1 %50, label %51, label %52

51:                                               ; preds = %48
  tail call void @_ZN9fvmsolver16StaticWallSource17calculateForUMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br label %52

52:                                               ; preds = %51, %48
  %53 = load i32, ptr %30, align 4, !tbaa !22
  %54 = icmp eq i32 %53, 2
  br i1 %54, label %55, label %56

55:                                               ; preds = %52
  tail call void @_ZN9fvmsolver16StaticWallSource17calculateForUMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br label %56

56:                                               ; preds = %55, %52
  ret void
}

declare noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellpEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) local_unnamed_addr #1

declare noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellwEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) local_unnamed_addr #1

declare noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCelleEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) local_unnamed_addr #1

declare noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellnEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) local_unnamed_addr #1

declare noundef i64 @_ZNK9fvmsolver18AbstractSourcePort11getNumCellsEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) local_unnamed_addr #1

declare noundef i32 @_ZNK9fvmsolver18AbstractSourcePort11getCellTypeEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) local_unnamed_addr #1

declare noundef double @_ZNK9fvmsolver18AbstractSourcePort6get_dXEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) local_unnamed_addr #1

declare noundef double @_ZNK9fvmsolver18AbstractSourcePort6get_dYEm(ptr noundef nonnull align 8 dereferenceable(48), i64 noundef) local_unnamed_addr #1

declare noundef double @_ZNK9fvmsolver18AbstractSourcePort5getMUEv(ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #1

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #3

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 = { "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 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 = { nocallback nofree nounwind willreturn memory(argmem: write) }

!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, !17, i64 32}
!6 = !{!"_ZTSN9fvmsolver16StaticWallSourceE", !7, i64 0, !11, i64 24, !17, i64 32, !8, i64 40, !8, i64 48, !8, i64 56, !8, i64 64, !18, i64 72, !18, i64 76, !18, i64 80, !18, i64 84}
!7 = !{!"_ZTSN9fvmsolver14AbstractSourceE", !8, i64 8, !8, i64 16}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"_ZTSSt10unique_ptrIN9fvmsolver18AbstractSourcePortESt14default_deleteIS1_EE", !12, i64 0}
!12 = !{!"_ZTSSt15__uniq_ptr_dataIN9fvmsolver18AbstractSourcePortESt14default_deleteIS1_ELb1ELb1EE", !13, i64 0}
!13 = !{!"_ZTSSt15__uniq_ptr_implIN9fvmsolver18AbstractSourcePortESt14default_deleteIS1_EE", !14, i64 0}
!14 = !{!"_ZTSSt5tupleIJPN9fvmsolver18AbstractSourcePortESt14default_deleteIS1_EEE", !15, i64 0}
!15 = !{!"_ZTSSt11_Tuple_implILm0EJPN9fvmsolver18AbstractSourcePortESt14default_deleteIS1_EEE", !16, i64 0}
!16 = !{!"_ZTSSt10_Head_baseILm0EPN9fvmsolver18AbstractSourcePortELb0EE", !17, i64 0}
!17 = !{!"any pointer", !9, i64 0}
!18 = !{!"_ZTSN9fvmsolver21EnumAdjacentCellTypesE", !9, i64 0}
!19 = !{!6, !18, i64 72}
!20 = !{!6, !18, i64 76}
!21 = !{!6, !18, i64 80}
!22 = !{!6, !18, i64 84}
!23 = !{!6, !8, i64 56}
!24 = !{!6, !8, i64 64}
!25 = !{!6, !8, i64 40}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,MemCpyOptPass,SROAPass,TailCallElimPass