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

; 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::MovingWallSource" = 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 @_ZN9fvmsolver16MovingWallSource9calculateEm(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::MovingWallSource", 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::MovingWallSource", 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::MovingWallSource", 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::MovingWallSource", 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::MovingWallSource", 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::MovingWallSource", 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::MovingWallSource", ptr %10, i32 0, i32 7
  store i32 %39, ptr %40, align 8, !tbaa !22
  %41 = getelementptr inbounds %"class.fvmsolver::MovingWallSource", 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::MovingWallSource", ptr %10, i32 0, i32 8
  store i32 %44, ptr %45, align 4, !tbaa !23
  %46 = getelementptr inbounds %"class.fvmsolver::MovingWallSource", 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::MovingWallSource", ptr %10, i32 0, i32 9
  store i32 %49, ptr %50, align 8, !tbaa !24
  %51 = getelementptr inbounds %"class.fvmsolver::MovingWallSource", 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::MovingWallSource", ptr %10, i32 0, i32 10
  store i32 %54, ptr %55, align 4, !tbaa !25
  %56 = getelementptr inbounds %"class.fvmsolver::MovingWallSource", 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::MovingWallSource", ptr %10, i32 0, i32 5
  store double %59, ptr %60, align 8, !tbaa !26
  %61 = getelementptr inbounds %"class.fvmsolver::MovingWallSource", 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::MovingWallSource", ptr %10, i32 0, i32 6
  store double %64, ptr %65, align 8, !tbaa !27
  %66 = getelementptr inbounds %"class.fvmsolver::MovingWallSource", 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::MovingWallSource", ptr %10, i32 0, i32 3
  store double %68, ptr %69, align 8, !tbaa !28
  %70 = getelementptr inbounds %"class.fvmsolver::MovingWallSource", ptr %10, i32 0, i32 2
  %71 = load ptr, ptr %70, align 8, !tbaa !11
  %72 = load ptr, ptr %71, align 8, !tbaa !29
  %73 = getelementptr inbounds ptr, ptr %72, i64 2
  %74 = load ptr, ptr %73, align 8
  %75 = call noundef double %74(ptr noundef nonnull align 8 dereferenceable(48) %71)
  %76 = getelementptr inbounds %"class.fvmsolver::MovingWallSource", ptr %10, i32 0, i32 4
  store double %75, ptr %76, align 8, !tbaa !31
  %77 = getelementptr inbounds %"class.fvmsolver::AbstractSource", ptr %10, i32 0, i32 1
  store double 0.000000e+00, ptr %77, align 8, !tbaa !32
  %78 = getelementptr inbounds %"class.fvmsolver::AbstractSource", ptr %10, i32 0, i32 2
  store double 0.000000e+00, ptr %78, align 8, !tbaa !33
  %79 = getelementptr inbounds %"class.fvmsolver::MovingWallSource", ptr %10, i32 0, i32 7
  %80 = load i32, ptr %79, align 8, !tbaa !22
  %81 = icmp eq i32 2, %80
  br i1 %81, label %82, label %83

82:                                               ; preds = %2
  call void @_ZN9fvmsolver16MovingWallSource17calculateForVMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %10)
  br label %83

83:                                               ; preds = %82, %2
  %84 = getelementptr inbounds %"class.fvmsolver::MovingWallSource", ptr %10, i32 0, i32 8
  %85 = load i32, ptr %84, align 4, !tbaa !23
  %86 = icmp eq i32 2, %85
  br i1 %86, label %87, label %88

87:                                               ; preds = %83
  call void @_ZN9fvmsolver16MovingWallSource17calculateForVMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %10)
  br label %88

88:                                               ; preds = %87, %83
  %89 = getelementptr inbounds %"class.fvmsolver::MovingWallSource", ptr %10, i32 0, i32 9
  %90 = load i32, ptr %89, align 8, !tbaa !24
  %91 = icmp eq i32 2, %90
  br i1 %91, label %92, label %93

92:                                               ; preds = %88
  call void @_ZN9fvmsolver16MovingWallSource17calculateForUMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %10)
  br label %93

93:                                               ; preds = %92, %88
  %94 = getelementptr inbounds %"class.fvmsolver::MovingWallSource", ptr %10, i32 0, i32 10
  %95 = load i32, ptr %94, align 4, !tbaa !25
  %96 = icmp eq i32 2, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %93
  call void @_ZN9fvmsolver16MovingWallSource17calculateForUMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %10)
  br label %98

98:                                               ; preds = %97, %93
  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 @_ZN9fvmsolver16MovingWallSource17calculateForVMeshEv(ptr noundef nonnull align 8 dereferenceable(88)) #3 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9fvmsolver16MovingWallSource17calculateForUMeshEv(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 = !{!"_ZTSN9fvmsolver16MovingWallSourceE", !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 = !{!30, !30, i64 0}
!30 = !{!"vtable pointer", !8, i64 0}
!31 = !{!12, !14, i64 48}
!32 = !{!13, !14, i64 8}
!33 = !{!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 @_ZN9fvmsolver16MovingWallSource9calculateEm(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 = load ptr, ptr %3, align 8, !tbaa !5
  %41 = load ptr, ptr %40, align 8, !tbaa !26
  %42 = getelementptr inbounds i8, ptr %41, i64 16
  %43 = load ptr, ptr %42, align 8
  %44 = tail call noundef double %43(ptr noundef nonnull align 8 dereferenceable(48) %40)
  %45 = getelementptr inbounds i8, ptr %0, i64 48
  store double %44, ptr %45, align 8, !tbaa !28
  %46 = getelementptr inbounds i8, ptr %0, i64 8
  tail call void @llvm.memset.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %46, i8 0, i64 16, i1 false)
  %47 = load i32, ptr %21, align 8, !tbaa !19
  %48 = icmp eq i32 %47, 2
  br i1 %48, label %49, label %50

49:                                               ; preds = %2
  tail call void @_ZN9fvmsolver16MovingWallSource17calculateForVMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br label %50

50:                                               ; preds = %49, %2
  %51 = load i32, ptr %24, align 4, !tbaa !20
  %52 = icmp eq i32 %51, 2
  br i1 %52, label %53, label %54

53:                                               ; preds = %50
  tail call void @_ZN9fvmsolver16MovingWallSource17calculateForVMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br label %54

54:                                               ; preds = %53, %50
  %55 = load i32, ptr %27, align 8, !tbaa !21
  %56 = icmp eq i32 %55, 2
  br i1 %56, label %57, label %58

57:                                               ; preds = %54
  tail call void @_ZN9fvmsolver16MovingWallSource17calculateForUMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br label %58

58:                                               ; preds = %57, %54
  %59 = load i32, ptr %30, align 4, !tbaa !22
  %60 = icmp eq i32 %59, 2
  br i1 %60, label %61, label %62

61:                                               ; preds = %58
  tail call void @_ZN9fvmsolver16MovingWallSource17calculateForUMeshEv(ptr noundef nonnull align 8 dereferenceable(88) %0)
  br label %62

62:                                               ; preds = %61, %58
  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 @_ZN9fvmsolver16MovingWallSource17calculateForVMeshEv(ptr noundef nonnull align 8 dereferenceable(88)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN9fvmsolver16MovingWallSource17calculateForUMeshEv(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 = !{!"_ZTSN9fvmsolver16MovingWallSourceE", !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}
!26 = !{!27, !27, i64 0}
!27 = !{!"vtable pointer", !10, i64 0}
!28 = !{!6, !8, i64 48}


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