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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13EulerSolver1D6SolverC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %5 = load ptr, ptr %2, align 8
  %6 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 0
  store float 0.000000e+00, ptr %6, align 8, !tbaa !9
  %7 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 1
  store float 1.000000e+00, ptr %7, align 4, !tbaa !15
  %8 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 2
  store float 5.000000e-01, ptr %8, align 8, !tbaa !16
  %9 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 3
  store float 0x3FF6666660000000, ptr %9, align 4, !tbaa !17
  %10 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 17
  call void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %10, i32 noundef 3, i32 noundef 1)
  %11 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 18
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %11, i32 noundef 3, i32 noundef 1)
          to label %12 unwind label %74

12:                                               ; preds = %1
  %13 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 19
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %13, i32 noundef 3, i32 noundef 1)
          to label %14 unwind label %78

14:                                               ; preds = %12
  %15 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 20
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %15, i32 noundef 3, i32 noundef 1)
          to label %16 unwind label %82

16:                                               ; preds = %14
  %17 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 21
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %17, i32 noundef 3, i32 noundef 1)
          to label %18 unwind label %86

18:                                               ; preds = %16
  %19 = invoke i32 (ptr, ...) @printf(ptr noundef @.str)
          to label %20 unwind label %90

20:                                               ; preds = %18
  %21 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 11
  store i32 80, ptr %21, align 4, !tbaa !18
  %22 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 8
  store float 0x3FFB333340000000, ptr %22, align 8, !tbaa !19
  %23 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 9
  store float 0x3FE99999A0000000, ptr %23, align 4, !tbaa !20
  %24 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 4
  store float -5.000000e+00, ptr %24, align 8, !tbaa !21
  %25 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 5
  store float 5.000000e+00, ptr %25, align 4, !tbaa !22
  %26 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.1)
          to label %27 unwind label %90

27:                                               ; preds = %20
  %28 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 11
  %29 = load i32, ptr %28, align 4, !tbaa !18
  %30 = add nsw i32 %29, 2
  %31 = sext i32 %30 to i64
  %32 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %31, i64 208)
  %33 = extractvalue { i64, i1 } %32, 1
  %34 = extractvalue { i64, i1 } %32, 0
  %35 = call { i64, i1 } @llvm.uadd.with.overflow.i64(i64 %34, i64 8)
  %36 = extractvalue { i64, i1 } %35, 1
  %37 = or i1 %33, %36
  %38 = extractvalue { i64, i1 } %35, 0
  %39 = select i1 %37, i64 -1, i64 %38
  %40 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %39) #8
          to label %41 unwind label %90

41:                                               ; preds = %27
  store i64 %31, ptr %40, align 16
  %42 = getelementptr inbounds i8, ptr %40, i64 8
  %43 = icmp eq i64 %31, 0
  br i1 %43, label %51, label %44

44:                                               ; preds = %41
  %45 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %42, i64 %31
  br label %46

46:                                               ; preds = %48, %44
  %47 = phi ptr [ %42, %44 ], [ %49, %48 ]
  invoke void @_ZN13EulerSolver1D9cell_dataC2Ev(ptr noundef nonnull align 8 dereferenceable(208) %47)
          to label %48 unwind label %94

48:                                               ; preds = %46
  %49 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %47, i64 1
  %50 = icmp eq ptr %49, %45
  br i1 %50, label %51, label %46

51:                                               ; preds = %48, %41
  %52 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 22
  store ptr %42, ptr %52, align 8, !tbaa !23
  %53 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 5
  %54 = load float, ptr %53, align 4, !tbaa !22
  %55 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 4
  %56 = load float, ptr %55, align 8, !tbaa !21
  %57 = fsub float %54, %56
  %58 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 11
  %59 = load i32, ptr %58, align 4, !tbaa !18
  %60 = sitofp i32 %59 to float
  %61 = fdiv float %57, %60
  %62 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 6
  store float %61, ptr %62, align 8, !tbaa !24
  %63 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.2)
          to label %64 unwind label %90

64:                                               ; preds = %51
  %65 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 11
  %66 = load i32, ptr %65, align 4, !tbaa !18
  %67 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 6
  %68 = load float, ptr %67, align 8, !tbaa !24
  %69 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 4
  %70 = load float, ptr %69, align 8, !tbaa !21
  %71 = getelementptr inbounds %"class.EulerSolver1D::Solver", ptr %5, i32 0, i32 3
  %72 = load float, ptr %71, align 4, !tbaa !17
  invoke void @_ZN13EulerSolver1D6Solver10initializeEifff(ptr noundef nonnull align 8 dereferenceable(280) %5, i32 noundef %66, float noundef %68, float noundef %70, float noundef %72)
          to label %73 unwind label %90

73:                                               ; preds = %64
  ret void

74:                                               ; preds = %1
  %75 = landingpad { ptr, i32 }
          cleanup
  %76 = extractvalue { ptr, i32 } %75, 0
  store ptr %76, ptr %3, align 8
  %77 = extractvalue { ptr, i32 } %75, 1
  store i32 %77, ptr %4, align 4
  br label %108

78:                                               ; preds = %12
  %79 = landingpad { ptr, i32 }
          cleanup
  %80 = extractvalue { ptr, i32 } %79, 0
  store ptr %80, ptr %3, align 8
  %81 = extractvalue { ptr, i32 } %79, 1
  store i32 %81, ptr %4, align 4
  br label %107

82:                                               ; preds = %14
  %83 = landingpad { ptr, i32 }
          cleanup
  %84 = extractvalue { ptr, i32 } %83, 0
  store ptr %84, ptr %3, align 8
  %85 = extractvalue { ptr, i32 } %83, 1
  store i32 %85, ptr %4, align 4
  br label %106

86:                                               ; preds = %16
  %87 = landingpad { ptr, i32 }
          cleanup
  %88 = extractvalue { ptr, i32 } %87, 0
  store ptr %88, ptr %3, align 8
  %89 = extractvalue { ptr, i32 } %87, 1
  store i32 %89, ptr %4, align 4
  br label %105

90:                                               ; preds = %64, %51, %27, %20, %18
  %91 = landingpad { ptr, i32 }
          cleanup
  %92 = extractvalue { ptr, i32 } %91, 0
  store ptr %92, ptr %3, align 8
  %93 = extractvalue { ptr, i32 } %91, 1
  store i32 %93, ptr %4, align 4
  br label %104

94:                                               ; preds = %46
  %95 = landingpad { ptr, i32 }
          cleanup
  %96 = extractvalue { ptr, i32 } %95, 0
  store ptr %96, ptr %3, align 8
  %97 = extractvalue { ptr, i32 } %95, 1
  store i32 %97, ptr %4, align 4
  %98 = icmp eq ptr %42, %47
  br i1 %98, label %103, label %99

99:                                               ; preds = %99, %94
  %100 = phi ptr [ %47, %94 ], [ %101, %99 ]
  %101 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %100, i64 -1
  call void @_ZN13EulerSolver1D9cell_dataD2Ev(ptr noundef nonnull align 8 dereferenceable(208) %101) #9
  %102 = icmp eq ptr %101, %42
  br i1 %102, label %103, label %99

103:                                              ; preds = %99, %94
  call void @_ZdaPvm(ptr noundef %40, i64 noundef %39) #10
  br label %104

104:                                              ; preds = %103, %90
  call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %17) #9
  br label %105

105:                                              ; preds = %104, %86
  call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %15) #9
  br label %106

106:                                              ; preds = %105, %82
  call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %13) #9
  br label %107

107:                                              ; preds = %106, %78
  call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %11) #9
  br label %108

108:                                              ; preds = %107, %74
  call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #9
  br label %109

109:                                              ; preds = %108
  %110 = load ptr, ptr %3, align 8
  %111 = load i32, ptr %4, align 4
  %112 = insertvalue { ptr, i32 } poison, ptr %110, 0
  %113 = insertvalue { ptr, i32 } %112, i32 %111, 1
  resume { ptr, i32 } %113
}

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

declare i32 @__gxx_personality_v0(...)

declare i32 @printf(ptr noundef, ...) #1

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.uadd.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN13EulerSolver1D9cell_dataC2Ev(ptr noundef nonnull align 8 dereferenceable(208)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13EulerSolver1D9cell_dataD2Ev(ptr noundef nonnull align 8 dereferenceable(208)) unnamed_addr #5 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13EulerSolver1D6Solver10initializeEifff(ptr noundef nonnull align 8 dereferenceable(280), i32 noundef, float noundef, float noundef, float noundef) #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #7 align 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 = { "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 speculatable willreturn memory(none) }
attributes #3 = { nobuiltin allocsize(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 = { 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 #5 = { inlinehint 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 #6 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { builtin 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, !11, i64 0}
!10 = !{!"_ZTSN13EulerSolver1D6SolverE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !12, i64 44, !12, i64 48, !12, i64 52, !12, i64 56, !12, i64 60, !12, i64 64, !13, i64 72, !13, i64 112, !13, i64 152, !13, i64 192, !13, i64 232, !6, i64 272}
!11 = !{!"float", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTS7Array2DIfE", !12, i64 0, !12, i64 4, !12, i64 8, !12, i64 12, !12, i64 16, !12, i64 20, !14, i64 24, !14, i64 25, !6, i64 32}
!14 = !{!"bool", !7, i64 0}
!15 = !{!10, !11, i64 4}
!16 = !{!10, !11, i64 8}
!17 = !{!10, !11, i64 12}
!18 = !{!10, !12, i64 44}
!19 = !{!10, !11, i64 32}
!20 = !{!10, !11, i64 36}
!21 = !{!10, !11, i64 16}
!22 = !{!10, !11, i64 20}
!23 = !{!10, !6, i64 272}
!24 = !{!10, !11, i64 24}


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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13EulerSolver1D6SolverC2Ev(ptr noundef nonnull align 8 dereferenceable(280) %0) unnamed_addr #0 align 2 personality ptr @__gxx_personality_v0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 12
  store <4 x float> <float 0.000000e+00, float 1.000000e+00, float 5.000000e-01, float 0x3FF6666660000000>, ptr %0, align 8, !tbaa !5
  %3 = getelementptr inbounds i8, ptr %0, i64 72
  tail call void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %3, i32 noundef 3, i32 noundef 1)
  %4 = getelementptr inbounds i8, ptr %0, i64 112
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %4, i32 noundef 3, i32 noundef 1)
          to label %5 unwind label %48

5:                                                ; preds = %1
  %6 = getelementptr inbounds i8, ptr %0, i64 152
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %6, i32 noundef 3, i32 noundef 1)
          to label %7 unwind label %50

7:                                                ; preds = %5
  %8 = getelementptr inbounds i8, ptr %0, i64 192
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %8, i32 noundef 3, i32 noundef 1)
          to label %9 unwind label %52

9:                                                ; preds = %7
  %10 = getelementptr inbounds i8, ptr %0, i64 232
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %10, i32 noundef 3, i32 noundef 1)
          to label %11 unwind label %54

11:                                               ; preds = %9
  %12 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str)
  %13 = getelementptr inbounds i8, ptr %0, i64 44
  store i32 80, ptr %13, align 4, !tbaa !9
  %14 = getelementptr inbounds i8, ptr %0, i64 32
  store <2 x float> <float 0x3FFB333340000000, float 0x3FE99999A0000000>, ptr %14, align 8, !tbaa !5
  %15 = getelementptr inbounds i8, ptr %0, i64 16
  %16 = getelementptr inbounds i8, ptr %0, i64 20
  store <2 x float> <float -5.000000e+00, float 5.000000e+00>, ptr %15, align 8, !tbaa !5
  %17 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.1)
  %18 = load i32, ptr %13, align 4, !tbaa !9
  %19 = add nsw i32 %18, 2
  %20 = sext i32 %19 to i64
  %21 = tail call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %20, i64 208)
  %22 = extractvalue { i64, i1 } %21, 1
  %23 = extractvalue { i64, i1 } %21, 0
  %24 = or disjoint i64 %23, 8
  %25 = select i1 %22, i64 -1, i64 %24
  %26 = invoke noalias noundef nonnull ptr @_Znam(i64 noundef %25) #8
          to label %27 unwind label %56

27:                                               ; preds = %11
  store i64 %20, ptr %26, align 16
  %.ptr11 = getelementptr inbounds i8, ptr %26, i64 8
  %28 = icmp eq i32 %19, 0
  br i1 %28, label %.loopexit21, label %29

29:                                               ; preds = %27
  %30 = getelementptr inbounds %"struct.EulerSolver1D::cell_data", ptr %.ptr11, i64 %20
  br label %31

31:                                               ; preds = %32, %29
  %.idx = phi i64 [ 8, %29 ], [ %.add, %32 ]
  %.ptr.ptr = getelementptr inbounds i8, ptr %26, i64 %.idx
  invoke void @_ZN13EulerSolver1D9cell_dataC2Ev(ptr noundef nonnull align 8 dereferenceable(208) %.ptr.ptr)
          to label %32 unwind label %58

32:                                               ; preds = %31
  %.add = add nuw nsw i64 %.idx, 208
  %.ptr10 = getelementptr inbounds i8, ptr %26, i64 %.add
  %33 = icmp eq ptr %.ptr10, %30
  br i1 %33, label %.loopexit21.loopexit, label %31

.loopexit21.loopexit:                             ; preds = %32
  %.pre = load i32, ptr %13, align 4, !tbaa !9
  %34 = sitofp i32 %.pre to float
  br label %.loopexit21

.loopexit21:                                      ; preds = %.loopexit21.loopexit, %27
  %35 = phi float [ %34, %.loopexit21.loopexit ], [ -2.000000e+00, %27 ]
  %36 = getelementptr inbounds i8, ptr %0, i64 272
  store ptr %.ptr11, ptr %36, align 8, !tbaa !15
  %37 = load float, ptr %16, align 4, !tbaa !16
  %38 = load float, ptr %15, align 8, !tbaa !17
  %39 = fsub float %37, %38
  %40 = fdiv float %39, %35
  %41 = getelementptr inbounds i8, ptr %0, i64 24
  store float %40, ptr %41, align 8, !tbaa !18
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.2)
  %43 = load i32, ptr %13, align 4, !tbaa !9
  %44 = load float, ptr %41, align 8, !tbaa !18
  %45 = load float, ptr %15, align 8, !tbaa !17
  %46 = load float, ptr %2, align 4, !tbaa !19
  invoke void @_ZN13EulerSolver1D6Solver10initializeEifff(ptr noundef nonnull align 8 dereferenceable(280) %0, i32 noundef %43, float noundef %44, float noundef %45, float noundef %46)
          to label %47 unwind label %56

47:                                               ; preds = %.loopexit21
  ret void

48:                                               ; preds = %1
  %49 = landingpad { ptr, i32 }
          cleanup
  br label %66

50:                                               ; preds = %5
  %51 = landingpad { ptr, i32 }
          cleanup
  br label %65

52:                                               ; preds = %7
  %53 = landingpad { ptr, i32 }
          cleanup
  br label %64

54:                                               ; preds = %9
  %55 = landingpad { ptr, i32 }
          cleanup
  br label %63

56:                                               ; preds = %.loopexit21, %11
  %57 = landingpad { ptr, i32 }
          cleanup
  br label %62

58:                                               ; preds = %31
  %59 = landingpad { ptr, i32 }
          cleanup
  %60 = icmp eq i64 %.idx, 8
  br i1 %60, label %.loopexit, label %.preheader

.preheader:                                       ; preds = %58, %.preheader
  %.idx12 = phi i64 [ %.add13, %.preheader ], [ %.idx, %58 ]
  %.add13 = add nsw i64 %.idx12, -208
  %.ptr15 = getelementptr inbounds i8, ptr %26, i64 %.add13
  tail call void @_ZN13EulerSolver1D9cell_dataD2Ev(ptr noundef nonnull align 8 dereferenceable(208) %.ptr15) #9
  %61 = icmp eq i64 %.add13, 8
  br i1 %61, label %.loopexit, label %.preheader

.loopexit:                                        ; preds = %.preheader, %58
  tail call void @_ZdaPvm(ptr noundef nonnull %26, i64 noundef %25) #10
  br label %62

62:                                               ; preds = %.loopexit, %56
  %.pn = phi { ptr, i32 } [ %57, %56 ], [ %59, %.loopexit ]
  tail call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %10) #9
  br label %63

63:                                               ; preds = %62, %54
  %.pn.pn = phi { ptr, i32 } [ %.pn, %62 ], [ %55, %54 ]
  tail call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %8) #9
  br label %64

64:                                               ; preds = %63, %52
  %.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn, %63 ], [ %53, %52 ]
  tail call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %6) #9
  br label %65

65:                                               ; preds = %64, %50
  %.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn, %64 ], [ %51, %50 ]
  tail call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %4) #9
  br label %66

66:                                               ; preds = %65, %48
  %.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn.pn.pn.pn, %65 ], [ %49, %48 ]
  tail call void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40) %3) #9
  resume { ptr, i32 } %.pn.pn.pn.pn.pn
}

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

declare i32 @__gxx_personality_v0(...)

; Function Attrs: nofree nounwind
declare noundef i32 @printf(ptr nocapture noundef readonly, ...) local_unnamed_addr #1

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #2

; Function Attrs: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znam(i64 noundef) local_unnamed_addr #3

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN13EulerSolver1D9cell_dataC2Ev(ptr noundef nonnull align 8 dereferenceable(208)) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13EulerSolver1D9cell_dataD2Ev(ptr noundef nonnull align 8 dereferenceable(208)) unnamed_addr #5 align 2

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPvm(ptr noundef, i64 noundef) local_unnamed_addr #6

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN13EulerSolver1D6Solver10initializeEifff(ptr noundef nonnull align 8 dereferenceable(280), i32 noundef, float noundef, float noundef, float noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Array2DIfED2Ev(ptr noundef nonnull align 8 dereferenceable(40)) unnamed_addr #7 align 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 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { nobuiltin allocsize(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 = { 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 #5 = { inlinehint 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 #6 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #7 = { 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 #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { builtin 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 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 44}
!10 = !{!"_ZTSN13EulerSolver1D6SolverE", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !6, i64 16, !6, i64 20, !6, i64 24, !6, i64 28, !6, i64 32, !6, i64 36, !6, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !12, i64 72, !12, i64 112, !12, i64 152, !12, i64 192, !12, i64 232, !14, i64 272}
!11 = !{!"int", !7, i64 0}
!12 = !{!"_ZTS7Array2DIfE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !13, i64 24, !13, i64 25, !14, i64 32}
!13 = !{!"bool", !7, i64 0}
!14 = !{!"any pointer", !7, i64 0}
!15 = !{!10, !14, i64 272}
!16 = !{!10, !6, i64 20}
!17 = !{!10, !6, i64 16}
!18 = !{!10, !6, i64 24}
!19 = !{!10, !6, i64 12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopSimplifyPass,LoopUnrollPass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass