; LLVM IR from LukeMcCulloch/cfd_solvers_cpp :: src/EulerShockTube1D.ll (ZN13EulerSolver1D6Solver10initializeEifff)

; 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.Array2D = type { i32, i32, i32, i32, i32, i32, i8, i8, ptr }
%"class.EulerSolver1D::Solver" = type { float, float, float, float, float, float, float, float, float, float, float, i32, i32, i32, i32, i32, i32, %class.Array2D, %class.Array2D, %class.Array2D, %class.Array2D, %class.Array2D, ptr }
%"struct.EulerSolver1D::cell_data" = type { float, %class.Array2D, %class.Array2D, %class.Array2D, %class.Array2D, %class.Array2D }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13EulerSolver1D6Solver10initializeEifff(ptr noundef nonnull align 8 dereferenceable(280) %0, i32 noundef %1, float noundef %2, float noundef %3, float noundef %4) #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca float, align 4
  %10 = alloca float, align 4
  %11 = alloca i32, align 4
  %12 = alloca %class.Array2D, align 8
  %13 = alloca %class.Array2D, align 8
  %14 = alloca ptr, align 8
  %15 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store float %2, ptr %8, align 4, !tbaa !11
  store float %3, ptr %9, align 4, !tbaa !11
  store float %4, ptr %10, align 4, !tbaa !11
  %16 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #4
  store i32 0, ptr %11, align 4, !tbaa !9
  br label %17

17:                                               ; preds = %98, %5
  %18 = load i32, ptr %11, align 4, !tbaa !9
  %19 = load i32, ptr %7, align 4, !tbaa !9
  %20 = add nsw i32 %19, 2
  %21 = icmp slt i32 %18, %20
  br i1 %21, label %23, label %22

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

23:                                               ; preds = %17
  %24 = load i32, ptr %11, align 4, !tbaa !9
  %25 = load i32, ptr %7, align 4, !tbaa !9
  %26 = sdiv i32 %25, 2
  %27 = icmp sle i32 %24, %26
  br i1 %27, label %28, label %50

28:                                               ; preds = %23
  %29 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %16, i32 0, i32 22
  %30 = load ptr, ptr %29, align 8, !tbaa !13
  %31 = load i32, ptr %11, align 4, !tbaa !9
  %32 = sext i32 %31 to i64
  %33 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %30, i64 %32
  %34 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %33, i32 0, i32 3
  %35 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %34, i32 noundef 0)
  store float 1.000000e+00, ptr %35, align 4, !tbaa !11
  %36 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %16, i32 0, i32 22
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  %38 = load i32, ptr %11, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %37, i64 %39
  %41 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %40, i32 0, i32 3
  %42 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %41, i32 noundef 1)
  store float 0.000000e+00, ptr %42, align 4, !tbaa !11
  %43 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %16, i32 0, i32 22
  %44 = load ptr, ptr %43, align 8, !tbaa !13
  %45 = load i32, ptr %11, align 4, !tbaa !9
  %46 = sext i32 %45 to i64
  %47 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %44, i64 %46
  %48 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %47, i32 0, i32 3
  %49 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %48, i32 noundef 2)
  store float 1.000000e+00, ptr %49, align 4, !tbaa !11
  br label %72

50:                                               ; preds = %23
  %51 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %16, i32 0, i32 22
  %52 = load ptr, ptr %51, align 8, !tbaa !13
  %53 = load i32, ptr %11, align 4, !tbaa !9
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %52, i64 %54
  %56 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %55, i32 0, i32 3
  %57 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %56, i32 noundef 0)
  store float 1.250000e-01, ptr %57, align 4, !tbaa !11
  %58 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %16, i32 0, i32 22
  %59 = load ptr, ptr %58, align 8, !tbaa !13
  %60 = load i32, ptr %11, align 4, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %59, i64 %61
  %63 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %62, i32 0, i32 3
  %64 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %63, i32 noundef 1)
  store float 0.000000e+00, ptr %64, align 4, !tbaa !11
  %65 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %16, i32 0, i32 22
  %66 = load ptr, ptr %65, align 8, !tbaa !13
  %67 = load i32, ptr %11, align 4, !tbaa !9
  %68 = sext i32 %67 to i64
  %69 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %66, i64 %68
  %70 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %69, i32 0, i32 3
  %71 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %70, i32 noundef 2)
  store float 0x3FB99999A0000000, ptr %71, align 4, !tbaa !11
  br label %72

72:                                               ; preds = %50, %28
  call void @llvm.lifetime.start.p0(i64 40, ptr %13) #4
  %73 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %16, i32 0, i32 22
  %74 = load ptr, ptr %73, align 8, !tbaa !13
  %75 = load i32, ptr %11, align 4, !tbaa !9
  %76 = sext i32 %75 to i64
  %77 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %74, i64 %76
  %78 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %77, i32 0, i32 3
  call void @_ZN13EulerSolver1D6Solver3w2uER7Array2DIfE(ptr dead_on_unwind writable sret(%class.Array2D) align 8 %13, ptr noundef nonnull align 8 dereferenceable(280) %16, ptr noundef nonnull align 8 dereferenceable(40) %78)
  %79 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %16, i32 0, i32 22
  %80 = load ptr, ptr %79, align 8, !tbaa !13
  %81 = load i32, ptr %11, align 4, !tbaa !9
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %80, i64 %82
  %84 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %83, i32 0, i32 1
  invoke void @_ZN7Array2DIfEaSERKS0_(ptr dead_on_unwind writable sret(%class.Array2D) align 8 %12, ptr noundef nonnull align 8 dereferenceable(40) %84, ptr noundef nonnull align 8 dereferenceable(40) %13)
          to label %85 unwind label %101

85:                                               ; preds = %72
  call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %12) #4
  call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #4
  %86 = load float, ptr %9, align 4, !tbaa !11
  %87 = load i32, ptr %11, align 4, !tbaa !9
  %88 = sub nsw i32 %87, 1
  %89 = sitofp i32 %88 to float
  %90 = load float, ptr %8, align 4, !tbaa !11
  %91 = call float @llvm.fmuladd.f32(float %89, float %90, float %86)
  %92 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %16, i32 0, i32 22
  %93 = load ptr, ptr %92, align 8, !tbaa !13
  %94 = load i32, ptr %11, align 4, !tbaa !9
  %95 = sext i32 %94 to i64
  %96 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %93, i64 %95
  %97 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %96, i32 0, i32 0
  store float %91, ptr %97, align 8, !tbaa !17
  br label %98

98:                                               ; preds = %85
  %99 = load i32, ptr %11, align 4, !tbaa !9
  %100 = add nsw i32 %99, 1
  store i32 %100, ptr %11, align 4, !tbaa !9
  br label %17, !llvm.loop !19

101:                                              ; preds = %72
  %102 = landingpad { ptr, i32 }
          cleanup
  %103 = extractvalue { ptr, i32 } %102, 0
  store ptr %103, ptr %14, align 8
  %104 = extractvalue { ptr, i32 } %102, 1
  store i32 %104, ptr %15, align 4
  call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr %13) #4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #4
  br label %106

105:                                              ; preds = %22
  ret void

106:                                              ; preds = %101
  %107 = load ptr, ptr %14, align 8
  %108 = load i32, ptr %15, align 4
  %109 = insertvalue { ptr, i32 } poison, ptr %107, 0
  %110 = insertvalue { ptr, i32 } %109, i32 %108, 1
  resume { ptr, i32 } %110
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array2DIfEaSERKS0_(ptr dead_on_unwind noalias writable sret(%class.Array2D) align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13EulerSolver1D6Solver3w2uER7Array2DIfE(ptr dead_on_unwind noalias writable sret(%class.Array2D) align 8, ptr noundef nonnull align 8 dereferenceable(280), ptr noundef nonnull align 8 dereferenceable(40)) #0 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = !{!14, !6, i64 272}
!14 = !{!"_ZTSN13EulerSolver1D6SolverE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !12, i64 24, !12, i64 28, !12, i64 32, !12, i64 36, !12, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !15, i64 72, !15, i64 112, !15, i64 152, !15, i64 192, !15, i64 232, !6, i64 272}
!15 = !{!"_ZTS7Array2DIfE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !16, i64 24, !16, i64 25, !6, i64 32}
!16 = !{!"bool", !7, i64 0}
!17 = !{!18, !12, i64 0}
!18 = !{!"_ZTSN13EulerSolver1D9cell_dataE", !12, i64 0, !15, i64 8, !15, i64 48, !15, i64 88, !15, i64 128, !15, i64 168}
!19 = distinct !{!19, !20}
!20 = !{!"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"

%class.Array2D = type { i32, i32, i32, i32, i32, i32, i8, i8, ptr }
%"struct.EulerSolver1D::cell_data" = type { float, %class.Array2D, %class.Array2D, %class.Array2D, %class.Array2D, %class.Array2D }

declare i32 @__gxx_personality_v0(...)

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13EulerSolver1D6Solver10initializeEifff(ptr noundef nonnull align 8 dereferenceable(280) %0, i32 noundef %1, float noundef %2, float noundef %3, float noundef %4) local_unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %6 = alloca %class.Array2D, align 8
  %7 = alloca %class.Array2D, align 8
  %8 = icmp sgt i32 %1, -2
  br i1 %8, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %5
  %9 = sdiv i32 %1, 2
  %10 = getelementptr inbounds i8, ptr %0, i64 272
  %11 = zext nneg i32 %9 to i64
  %12 = add i32 %1, 2
  %wide.trip.count = zext i32 %12 to i64
  br label %13

._crit_edge:                                      ; preds = %27, %5
  ret void

13:                                               ; preds = %.lr.ph, %27
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %27 ]
  %.not = icmp ugt i64 %indvars.iv, %11
  %14 = load ptr, ptr %10, align 8, !tbaa !5
  %15 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %14, i64 %indvars.iv, i32 3
  %16 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %15, i32 noundef 0)
  %. = select i1 %.not, float 1.250000e-01, float 1.000000e+00
  %.29 = select i1 %.not, float 0x3FB99999A0000000, float 1.000000e+00
  store float %., ptr %16, align 4, !tbaa !14
  %17 = load ptr, ptr %10, align 8, !tbaa !5
  %18 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %17, i64 %indvars.iv, i32 3
  %19 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %18, i32 noundef 1)
  store float 0.000000e+00, ptr %19, align 4, !tbaa !14
  %20 = load ptr, ptr %10, align 8, !tbaa !5
  %21 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %20, i64 %indvars.iv, i32 3
  %22 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %21, i32 noundef 2)
  store float %.29, ptr %22, align 4, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 40, ptr nonnull %7) #4
  %23 = load ptr, ptr %10, align 8, !tbaa !5
  %24 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %23, i64 %indvars.iv, i32 3
  call void @_ZN13EulerSolver1D6Solver3w2uER7Array2DIfE(ptr dead_on_unwind nonnull writable sret(%class.Array2D) align 8 %7, ptr noundef nonnull align 8 dereferenceable(280) %0, ptr noundef nonnull align 8 dereferenceable(40) %24)
  %25 = load ptr, ptr %10, align 8, !tbaa !5
  %26 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %25, i64 %indvars.iv, i32 1
  invoke void @_ZN7Array2DIfEaSERKS0_(ptr dead_on_unwind nonnull writable sret(%class.Array2D) align 8 %6, ptr noundef nonnull align 8 dereferenceable(40) %26, ptr noundef nonnull align 8 dereferenceable(40) %7)
          to label %27 unwind label %34

27:                                               ; preds = %13
  call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #4
  call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  %28 = trunc i64 %indvars.iv to i32
  %29 = add i32 %28, -1
  %30 = sitofp i32 %29 to float
  %31 = call float @llvm.fmuladd.f32(float %30, float %2, float %3)
  %32 = load ptr, ptr %10, align 8, !tbaa !5
  %33 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %32, i64 %indvars.iv
  store float %31, ptr %33, align 8, !tbaa !15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond, label %._crit_edge, label %13, !llvm.loop !17

34:                                               ; preds = %13
  %35 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %7) #4
  call void @llvm.lifetime.end.p0(i64 40, ptr nonnull %7) #4
  resume { ptr, i32 } %35
}

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #1 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN7Array2DIfEaSERKS0_(ptr dead_on_unwind noalias writable sret(%class.Array2D) align 8, ptr noundef nonnull align 8 dereferenceable(40), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40), i32 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13EulerSolver1D6Solver3w2uER7Array2DIfE(ptr dead_on_unwind noalias writable sret(%class.Array2D) align 8, ptr noundef nonnull align 8 dereferenceable(280), ptr noundef nonnull align 8 dereferenceable(40)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !13, i64 272}
!6 = !{!"_ZTSN13EulerSolver1D6SolverE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !7, i64 24, !7, i64 28, !7, i64 32, !7, i64 36, !7, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !11, i64 72, !11, i64 112, !11, i64 152, !11, i64 192, !11, i64 232, !13, i64 272}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTS7Array2DIfE", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !12, i64 24, !12, i64 25, !13, i64 32}
!12 = !{!"bool", !8, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!7, !7, i64 0}
!15 = !{!16, !7, i64 0}
!16 = !{!"_ZTSN13EulerSolver1D9cell_dataE", !7, i64 0, !11, i64 8, !11, i64 48, !11, i64 88, !11, i64 128, !11, i64 168}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}


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