; LLVM IR from LukeMcCulloch/cfd_solvers_cpp :: src (EulerUnsteady2D_basic_package)

; 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.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.0 }
%union.anon.0 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.EulerSolver2D::MainData2D" = type { %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i64, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", double, %"class.std::__cxx11::basic_string", %"class.std::__cxx11::basic_string", i64, double, double, double, double, double, double, double, double, i64, ptr, i64, i64, i64, ptr, i64, ptr, i64, ptr, i64, ptr, i64 }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }
%"class.EulerSolver2D::node_type" = type { double, double, i32, ptr, i32, %class.Vector1D, double, i32, i32, ptr, double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, ptr, ptr, ptr }
%class.Vector1D = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.EulerSolver2D::elm_type" = type <{ i32, [4 x i8], ptr, i32, [4 x i8], ptr, double, double, double, ptr, ptr, ptr, ptr, ptr, double, double, i32, i32, %class.Vector1D, double, ptr, ptr, i32, [4 x i8] }>
%"class.EulerSolver2D::bgrid_type" = type { %"class.std::__cxx11::basic_string", i64, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) #3

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13EulerSolver2D10MainData2D15write_grid_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca %"class.std::basic_ofstream", align 8
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca i64, align 8
  %11 = alloca i64, align 8
  %12 = alloca i32, align 4
  %13 = alloca i64, align 8
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  %14 = load ptr, ptr %3, align 8
  call void @llvm.lifetime.start.p0(i64 512, ptr %5) #5
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %5)
  %15 = load ptr, ptr %4, align 8, !tbaa !5
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %5, ptr noundef nonnull align 8 dereferenceable(32) %15, i32 noundef 16)
          to label %16 unwind label %42

16:                                               ; preds = %2
  %17 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 21
  %18 = load i64, ptr %17, align 8, !tbaa !9
  %19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %18)
          to label %20 unwind label %42

20:                                               ; preds = %16
  %21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %19, i8 noundef signext 9)
          to label %22 unwind label %42

22:                                               ; preds = %20
  %23 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 23
  %24 = load i64, ptr %23, align 8, !tbaa !15
  %25 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %21, i64 noundef %24)
          to label %26 unwind label %42

26:                                               ; preds = %22
  %27 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %25, i8 noundef signext 9)
          to label %28 unwind label %42

28:                                               ; preds = %26
  %29 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 24
  %30 = load i64, ptr %29, align 8, !tbaa !16
  %31 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %27, i64 noundef %30)
          to label %32 unwind label %42

32:                                               ; preds = %28
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %31, ptr noundef @.str.14)
          to label %34 unwind label %42

34:                                               ; preds = %32
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #5
  store i32 0, ptr %8, align 4, !tbaa !17
  br label %35

35:                                               ; preds = %69, %34
  %36 = load i32, ptr %8, align 4, !tbaa !17
  %37 = sext i32 %36 to i64
  %38 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 21
  %39 = load i64, ptr %38, align 8, !tbaa !9
  %40 = icmp ult i64 %37, %39
  br i1 %40, label %46, label %41

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

42:                                               ; preds = %289, %242, %215, %211, %32, %28, %26, %22, %20, %16, %2
  %43 = landingpad { ptr, i32 }
          cleanup
  %44 = extractvalue { ptr, i32 } %43, 0
  store ptr %44, ptr %6, align 8
  %45 = extractvalue { ptr, i32 } %43, 1
  store i32 %45, ptr %7, align 4
  br label %291

46:                                               ; preds = %35
  %47 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 22
  %48 = load ptr, ptr %47, align 8, !tbaa !19
  %49 = load i32, ptr %8, align 4, !tbaa !17
  %50 = sext i32 %49 to i64
  %51 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %48, i64 %50
  %52 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %51, i32 0, i32 0
  %53 = load double, ptr %52, align 8, !tbaa !20
  %54 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %5, double noundef %53)
          to label %55 unwind label %72

55:                                               ; preds = %46
  %56 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %54, i8 noundef signext 9)
          to label %57 unwind label %72

57:                                               ; preds = %55
  %58 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 22
  %59 = load ptr, ptr %58, align 8, !tbaa !19
  %60 = load i32, ptr %8, align 4, !tbaa !17
  %61 = sext i32 %60 to i64
  %62 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %59, i64 %61
  %63 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %62, i32 0, i32 1
  %64 = load double, ptr %63, align 8, !tbaa !27
  %65 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %56, double noundef %64)
          to label %66 unwind label %72

66:                                               ; preds = %57
  %67 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %65, ptr noundef @.str.14)
          to label %68 unwind label %72

68:                                               ; preds = %66
  br label %69

69:                                               ; preds = %68
  %70 = load i32, ptr %8, align 4, !tbaa !17
  %71 = add nsw i32 %70, 1
  store i32 %71, ptr %8, align 4, !tbaa !17
  br label %35, !llvm.loop !28

72:                                               ; preds = %66, %57, %55, %46
  %73 = landingpad { ptr, i32 }
          cleanup
  %74 = extractvalue { ptr, i32 } %73, 0
  store ptr %74, ptr %6, align 8
  %75 = extractvalue { ptr, i32 } %73, 1
  store i32 %75, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #5
  br label %291

76:                                               ; preds = %41
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #5
  store i32 0, ptr %9, align 4, !tbaa !17
  br label %77

77:                                               ; preds = %208, %76
  %78 = load i32, ptr %9, align 4, !tbaa !17
  %79 = sext i32 %78 to i64
  %80 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 25
  %81 = load i64, ptr %80, align 8, !tbaa !30
  %82 = icmp ult i64 %79, %81
  br i1 %82, label %84, label %83

83:                                               ; preds = %77
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %211

84:                                               ; preds = %77
  %85 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 26
  %86 = load ptr, ptr %85, align 8, !tbaa !31
  %87 = load i32, ptr %9, align 4, !tbaa !17
  %88 = sext i32 %87 to i64
  %89 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %86, i64 %88
  %90 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %89, i32 0, i32 0
  %91 = load i32, ptr %90, align 8, !tbaa !32
  %92 = icmp eq i32 %91, 3
  br i1 %92, label %93, label %140

93:                                               ; preds = %84
  %94 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 26
  %95 = load ptr, ptr %94, align 8, !tbaa !31
  %96 = load i32, ptr %9, align 4, !tbaa !17
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %95, i64 %97
  %99 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %98, i32 0, i32 2
  %100 = load ptr, ptr %99, align 8, !tbaa !34
  %101 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %100, i32 noundef 0, i32 noundef 0)
          to label %102 unwind label %136

102:                                              ; preds = %93
  %103 = load i32, ptr %101, align 4, !tbaa !17
  %104 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %103)
          to label %105 unwind label %136

105:                                              ; preds = %102
  %106 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %104, i8 noundef signext 9)
          to label %107 unwind label %136

107:                                              ; preds = %105
  %108 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 26
  %109 = load ptr, ptr %108, align 8, !tbaa !31
  %110 = load i32, ptr %9, align 4, !tbaa !17
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %109, i64 %111
  %113 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %112, i32 0, i32 2
  %114 = load ptr, ptr %113, align 8, !tbaa !34
  %115 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %114, i32 noundef 1, i32 noundef 0)
          to label %116 unwind label %136

116:                                              ; preds = %107
  %117 = load i32, ptr %115, align 4, !tbaa !17
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %106, i32 noundef %117)
          to label %119 unwind label %136

119:                                              ; preds = %116
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %118, i8 noundef signext 9)
          to label %121 unwind label %136

121:                                              ; preds = %119
  %122 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 26
  %123 = load ptr, ptr %122, align 8, !tbaa !31
  %124 = load i32, ptr %9, align 4, !tbaa !17
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %123, i64 %125
  %127 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %126, i32 0, i32 2
  %128 = load ptr, ptr %127, align 8, !tbaa !34
  %129 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %128, i32 noundef 2, i32 noundef 0)
          to label %130 unwind label %136

130:                                              ; preds = %121
  %131 = load i32, ptr %129, align 4, !tbaa !17
  %132 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %120, i32 noundef %131)
          to label %133 unwind label %136

133:                                              ; preds = %130
  %134 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %132, ptr noundef @.str.14)
          to label %135 unwind label %136

135:                                              ; preds = %133
  br label %207

136:                                              ; preds = %203, %200, %191, %189, %186, %177, %175, %172, %163, %161, %158, %149, %133, %130, %121, %119, %116, %107, %105, %102, %93
  %137 = landingpad { ptr, i32 }
          cleanup
  %138 = extractvalue { ptr, i32 } %137, 0
  store ptr %138, ptr %6, align 8
  %139 = extractvalue { ptr, i32 } %137, 1
  store i32 %139, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #5
  br label %291

140:                                              ; preds = %84
  %141 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 26
  %142 = load ptr, ptr %141, align 8, !tbaa !31
  %143 = load i32, ptr %9, align 4, !tbaa !17
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %142, i64 %144
  %146 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %145, i32 0, i32 0
  %147 = load i32, ptr %146, align 8, !tbaa !32
  %148 = icmp eq i32 %147, 4
  br i1 %148, label %149, label %206

149:                                              ; preds = %140
  %150 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 26
  %151 = load ptr, ptr %150, align 8, !tbaa !31
  %152 = load i32, ptr %9, align 4, !tbaa !17
  %153 = sext i32 %152 to i64
  %154 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %151, i64 %153
  %155 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %154, i32 0, i32 2
  %156 = load ptr, ptr %155, align 8, !tbaa !34
  %157 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %156, i32 noundef 0, i32 noundef 0)
          to label %158 unwind label %136

158:                                              ; preds = %149
  %159 = load i32, ptr %157, align 4, !tbaa !17
  %160 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %159)
          to label %161 unwind label %136

161:                                              ; preds = %158
  %162 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %160, i8 noundef signext 9)
          to label %163 unwind label %136

163:                                              ; preds = %161
  %164 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 26
  %165 = load ptr, ptr %164, align 8, !tbaa !31
  %166 = load i32, ptr %9, align 4, !tbaa !17
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %165, i64 %167
  %169 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %168, i32 0, i32 2
  %170 = load ptr, ptr %169, align 8, !tbaa !34
  %171 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %170, i32 noundef 1, i32 noundef 0)
          to label %172 unwind label %136

172:                                              ; preds = %163
  %173 = load i32, ptr %171, align 4, !tbaa !17
  %174 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %162, i32 noundef %173)
          to label %175 unwind label %136

175:                                              ; preds = %172
  %176 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %174, i8 noundef signext 9)
          to label %177 unwind label %136

177:                                              ; preds = %175
  %178 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 26
  %179 = load ptr, ptr %178, align 8, !tbaa !31
  %180 = load i32, ptr %9, align 4, !tbaa !17
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %179, i64 %181
  %183 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %182, i32 0, i32 2
  %184 = load ptr, ptr %183, align 8, !tbaa !34
  %185 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %184, i32 noundef 2, i32 noundef 0)
          to label %186 unwind label %136

186:                                              ; preds = %177
  %187 = load i32, ptr %185, align 4, !tbaa !17
  %188 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %176, i32 noundef %187)
          to label %189 unwind label %136

189:                                              ; preds = %186
  %190 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %188, i8 noundef signext 9)
          to label %191 unwind label %136

191:                                              ; preds = %189
  %192 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 26
  %193 = load ptr, ptr %192, align 8, !tbaa !31
  %194 = load i32, ptr %9, align 4, !tbaa !17
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %193, i64 %195
  %197 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %196, i32 0, i32 2
  %198 = load ptr, ptr %197, align 8, !tbaa !34
  %199 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %198, i32 noundef 3, i32 noundef 0)
          to label %200 unwind label %136

200:                                              ; preds = %191
  %201 = load i32, ptr %199, align 4, !tbaa !17
  %202 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %190, i32 noundef %201)
          to label %203 unwind label %136

203:                                              ; preds = %200
  %204 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %202, ptr noundef @.str.14)
          to label %205 unwind label %136

205:                                              ; preds = %203
  br label %206

206:                                              ; preds = %205, %140
  br label %207

207:                                              ; preds = %206, %135
  br label %208

208:                                              ; preds = %207
  %209 = load i32, ptr %9, align 4, !tbaa !17
  %210 = add nsw i32 %209, 1
  store i32 %210, ptr %9, align 4, !tbaa !17
  br label %77, !llvm.loop !35

211:                                              ; preds = %83
  %212 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 29
  %213 = load i64, ptr %212, align 8, !tbaa !36
  %214 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %213)
          to label %215 unwind label %42

215:                                              ; preds = %211
  %216 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %214, ptr noundef @.str.14)
          to label %217 unwind label %42

217:                                              ; preds = %215
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  store i64 0, ptr %10, align 8, !tbaa !37
  br label %218

218:                                              ; preds = %235, %217
  %219 = load i64, ptr %10, align 8, !tbaa !37
  %220 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 29
  %221 = load i64, ptr %220, align 8, !tbaa !36
  %222 = icmp ult i64 %219, %221
  br i1 %222, label %224, label %223

223:                                              ; preds = %218
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %242

224:                                              ; preds = %218
  %225 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 30
  %226 = load ptr, ptr %225, align 8, !tbaa !38
  %227 = load i64, ptr %10, align 8, !tbaa !37
  %228 = getelementptr inbounds %"class.EulerSolver2D::bgrid_type", ptr %226, i64 %227
  %229 = getelementptr inbounds %"class.EulerSolver2D::bgrid_type", ptr %228, i32 0, i32 1
  %230 = load i64, ptr %229, align 8, !tbaa !39
  %231 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %5, i64 noundef %230)
          to label %232 unwind label %238

232:                                              ; preds = %224
  %233 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %231, ptr noundef @.str.14)
          to label %234 unwind label %238

234:                                              ; preds = %232
  br label %235

235:                                              ; preds = %234
  %236 = load i64, ptr %10, align 8, !tbaa !37
  %237 = add i64 %236, 1
  store i64 %237, ptr %10, align 8, !tbaa !37
  br label %218, !llvm.loop !41

238:                                              ; preds = %232, %224
  %239 = landingpad { ptr, i32 }
          cleanup
  %240 = extractvalue { ptr, i32 } %239, 0
  store ptr %240, ptr %6, align 8
  %241 = extractvalue { ptr, i32 } %239, 1
  store i32 %241, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %291

242:                                              ; preds = %223
  %243 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %5, ptr noundef @.str.14)
          to label %244 unwind label %42

244:                                              ; preds = %242
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #5
  store i64 0, ptr %11, align 8, !tbaa !37
  br label %245

245:                                              ; preds = %286, %244
  %246 = load i64, ptr %11, align 8, !tbaa !37
  %247 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 29
  %248 = load i64, ptr %247, align 8, !tbaa !36
  %249 = icmp ult i64 %246, %248
  br i1 %249, label %251, label %250

250:                                              ; preds = %245
  store i32 11, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %289

251:                                              ; preds = %245
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #5
  store i64 0, ptr %13, align 8, !tbaa !37
  br label %252

252:                                              ; preds = %278, %251
  %253 = load i64, ptr %13, align 8, !tbaa !37
  %254 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 30
  %255 = load ptr, ptr %254, align 8, !tbaa !38
  %256 = load i64, ptr %11, align 8, !tbaa !37
  %257 = getelementptr inbounds %"class.EulerSolver2D::bgrid_type", ptr %255, i64 %256
  %258 = getelementptr inbounds %"class.EulerSolver2D::bgrid_type", ptr %257, i32 0, i32 1
  %259 = load i64, ptr %258, align 8, !tbaa !39
  %260 = icmp ult i64 %253, %259
  br i1 %260, label %262, label %261

261:                                              ; preds = %252
  store i32 14, ptr %12, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  br label %285

262:                                              ; preds = %252
  %263 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %14, i32 0, i32 30
  %264 = load ptr, ptr %263, align 8, !tbaa !38
  %265 = load i64, ptr %11, align 8, !tbaa !37
  %266 = getelementptr inbounds %"class.EulerSolver2D::bgrid_type", ptr %264, i64 %265
  %267 = getelementptr inbounds %"class.EulerSolver2D::bgrid_type", ptr %266, i32 0, i32 2
  %268 = load ptr, ptr %267, align 8, !tbaa !42
  %269 = load i64, ptr %13, align 8, !tbaa !37
  %270 = trunc i64 %269 to i32
  %271 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %268, i32 noundef %270, i32 noundef 0)
          to label %272 unwind label %281

272:                                              ; preds = %262
  %273 = load i32, ptr %271, align 4, !tbaa !17
  %274 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %5, i32 noundef %273)
          to label %275 unwind label %281

275:                                              ; preds = %272
  %276 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %274, ptr noundef @.str.14)
          to label %277 unwind label %281

277:                                              ; preds = %275
  br label %278

278:                                              ; preds = %277
  %279 = load i64, ptr %13, align 8, !tbaa !37
  %280 = add i64 %279, 1
  store i64 %280, ptr %13, align 8, !tbaa !37
  br label %252, !llvm.loop !43

281:                                              ; preds = %275, %272, %262
  %282 = landingpad { ptr, i32 }
          cleanup
  %283 = extractvalue { ptr, i32 } %282, 0
  store ptr %283, ptr %6, align 8
  %284 = extractvalue { ptr, i32 } %282, 1
  store i32 %284, ptr %7, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #5
  br label %291

285:                                              ; preds = %261
  br label %286

286:                                              ; preds = %285
  %287 = load i64, ptr %11, align 8, !tbaa !37
  %288 = add i64 %287, 1
  store i64 %288, ptr %11, align 8, !tbaa !37
  br label %245, !llvm.loop !44

289:                                              ; preds = %250
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %5)
          to label %290 unwind label %42

290:                                              ; preds = %289
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %5) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr %5) #5
  ret void

291:                                              ; preds = %281, %238, %136, %72, %42
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %5) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr %5) #5
  br label %292

292:                                              ; preds = %291
  %293 = load ptr, ptr %6, align 8
  %294 = load i32, ptr %7, align 4
  %295 = insertvalue { ptr, i32 } poison, ptr %293, 0
  %296 = insertvalue { ptr, i32 } %295, i32 %294, 1
  resume { ptr, i32 } %296
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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, !13, i64 408}
!10 = !{!"_ZTSN13EulerSolver2D10MainData2DE", !11, i64 0, !11, i64 32, !11, i64 64, !11, i64 96, !11, i64 128, !11, i64 160, !13, i64 192, !11, i64 200, !11, i64 232, !14, i64 264, !11, i64 272, !11, i64 304, !13, i64 336, !14, i64 344, !14, i64 352, !14, i64 360, !14, i64 368, !14, i64 376, !14, i64 384, !14, i64 392, !14, i64 400, !13, i64 408, !6, i64 416, !13, i64 424, !13, i64 432, !13, i64 440, !6, i64 448, !13, i64 456, !6, i64 464, !13, i64 472, !6, i64 480, !13, i64 488, !6, i64 496, !13, i64 504}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !13, i64 8, !7, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!13 = !{!"long", !7, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!10, !13, i64 424}
!16 = !{!10, !13, i64 432}
!17 = !{!18, !18, i64 0}
!18 = !{!"int", !7, i64 0}
!19 = !{!10, !6, i64 416}
!20 = !{!21, !14, i64 0}
!21 = !{!"_ZTSN13EulerSolver2D9node_typeE", !14, i64 0, !14, i64 8, !18, i64 16, !6, i64 24, !18, i64 32, !22, i64 40, !14, i64 64, !18, i64 72, !18, i64 76, !6, i64 80, !14, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120, !6, i64 128, !6, i64 136, !6, i64 144, !6, i64 152, !6, i64 160, !6, i64 168, !6, i64 176, !6, i64 184, !6, i64 192, !14, i64 200, !14, i64 208, !14, i64 216, !6, i64 224, !6, i64 232, !6, i64 240}
!22 = !{!"_ZTS8Vector1DIiE", !23, i64 0}
!23 = !{!"_ZTSSt6vectorIiSaIiEE", !24, i64 0}
!24 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !26, i64 0}
!26 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!27 = !{!21, !14, i64 8}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!10, !13, i64 440}
!31 = !{!10, !6, i64 448}
!32 = !{!33, !18, i64 0}
!33 = !{!"_ZTSN13EulerSolver2D8elm_typeE", !18, i64 0, !6, i64 8, !18, i64 16, !6, i64 24, !14, i64 32, !14, i64 40, !14, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !14, i64 96, !14, i64 104, !18, i64 112, !18, i64 116, !22, i64 120, !14, i64 144, !6, i64 152, !6, i64 160, !18, i64 168}
!34 = !{!33, !6, i64 8}
!35 = distinct !{!35, !29}
!36 = !{!10, !13, i64 472}
!37 = !{!13, !13, i64 0}
!38 = !{!10, !6, i64 480}
!39 = !{!40, !13, i64 32}
!40 = !{!"_ZTSN13EulerSolver2D10bgrid_typeE", !11, i64 0, !13, i64 32, !6, i64 40, !13, i64 48, !6, i64 56, !6, i64 64, !6, i64 72, !6, i64 80, !6, i64 88, !6, i64 96, !6, i64 104, !6, i64 112, !6, i64 120}
!41 = distinct !{!41, !29}
!42 = !{!40, !6, i64 40}
!43 = distinct !{!43, !29}
!44 = distinct !{!44, !29}


; 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.std::basic_ofstream" = type { %"class.std::basic_ostream.base", %"class.std::basic_filebuf", %"class.std::basic_ios" }
%"class.std::basic_ostream.base" = type { ptr }
%"class.std::basic_filebuf" = type { %"class.std::basic_streambuf", %union.pthread_mutex_t, %"class.std::__basic_file", i32, %struct.__mbstate_t, %struct.__mbstate_t, %struct.__mbstate_t, ptr, i64, i8, i8, i8, i8, ptr, ptr, i8, ptr, ptr, i64, ptr, ptr }
%"class.std::basic_streambuf" = type { ptr, ptr, ptr, ptr, ptr, ptr, ptr, %"class.std::locale" }
%"class.std::locale" = type { ptr }
%union.pthread_mutex_t = type { %struct.__pthread_mutex_s }
%struct.__pthread_mutex_s = type { i32, i32, i32, i32, i32, i16, i16, %struct.__pthread_internal_list }
%struct.__pthread_internal_list = type { ptr, ptr }
%"class.std::__basic_file" = type <{ ptr, i8, [7 x i8] }>
%struct.__mbstate_t = type { i32, %union.anon.0 }
%union.anon.0 = type { i32 }
%"class.std::basic_ios" = type { %"class.std::ios_base", ptr, i8, i8, ptr, ptr, ptr, ptr }
%"class.std::ios_base" = type { ptr, i64, i64, i32, i32, i32, ptr, %"struct.std::ios_base::_Words", [8 x %"struct.std::ios_base::_Words"], i32, ptr, %"class.std::locale" }
%"struct.std::ios_base::_Words" = type { ptr, i64 }
%"class.EulerSolver2D::node_type" = type { double, double, i32, ptr, i32, %class.Vector1D, double, i32, i32, ptr, double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, ptr, ptr, ptr }
%class.Vector1D = type { %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl" = type { %"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" }
%"struct.std::_Vector_base<int, std::allocator<int>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%"class.EulerSolver2D::elm_type" = type <{ i32, [4 x i8], ptr, i32, [4 x i8], ptr, double, double, double, ptr, ptr, ptr, ptr, ptr, double, double, i32, i32, %class.Vector1D, double, ptr, ptr, i32, [4 x i8] }>
%"class.EulerSolver2D::bgrid_type" = type { %"class.std::__cxx11::basic_string", i64, ptr, i64, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr }
%"class.std::__cxx11::basic_string" = type { %"struct.std::__cxx11::basic_string<char>::_Alloc_hider", i64, %union.anon }
%"struct.std::__cxx11::basic_string<char>::_Alloc_hider" = type { ptr }
%union.anon = type { i64, [8 x i8] }

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

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

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

declare i32 @__gxx_personality_v0(...)

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

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

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

declare noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8), i32 noundef) local_unnamed_addr #3

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #2 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248), ptr noundef nonnull align 8 dereferenceable(32), i32 noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248)) local_unnamed_addr #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #4 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN13EulerSolver2D10MainData2D15write_grid_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr nocapture noundef nonnull readonly align 8 dereferenceable(512) %0, ptr noundef nonnull align 8 dereferenceable(32) %1) local_unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %3 = alloca %"class.std::basic_ofstream", align 8
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %3) #5
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3)
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %3, ptr noundef nonnull align 8 dereferenceable(32) %1, i32 noundef 16)
          to label %4 unwind label %27

4:                                                ; preds = %2
  %5 = getelementptr inbounds i8, ptr %0, i64 408
  %6 = load i64, ptr %5, align 8, !tbaa !5
  %7 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %6)
          to label %8 unwind label %27

8:                                                ; preds = %4
  %9 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %7, i8 noundef signext 9)
          to label %10 unwind label %27

10:                                               ; preds = %8
  %11 = getelementptr inbounds i8, ptr %0, i64 424
  %12 = load i64, ptr %11, align 8, !tbaa !14
  %13 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %9, i64 noundef %12)
          to label %14 unwind label %27

14:                                               ; preds = %10
  %15 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %13, i8 noundef signext 9)
          to label %16 unwind label %27

16:                                               ; preds = %14
  %17 = getelementptr inbounds i8, ptr %0, i64 432
  %18 = load i64, ptr %17, align 8, !tbaa !15
  %19 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %15, i64 noundef %18)
          to label %20 unwind label %27

20:                                               ; preds = %16
  %21 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %19, ptr noundef nonnull @.str.14)
          to label %.preheader41 unwind label %27

.preheader41:                                     ; preds = %20
  %22 = load i64, ptr %5, align 8, !tbaa !5
  %.not = icmp eq i64 %22, 0
  br i1 %.not, label %.preheader40, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader41
  %23 = getelementptr inbounds i8, ptr %0, i64 416
  br label %29

.preheader40:                                     ; preds = %43, %.preheader41
  %24 = getelementptr inbounds i8, ptr %0, i64 440
  %25 = load i64, ptr %24, align 8, !tbaa !16
  %.not53 = icmp eq i64 %25, 0
  br i1 %.not53, label %._crit_edge, label %.lr.ph44

.lr.ph44:                                         ; preds = %.preheader40
  %26 = getelementptr inbounds i8, ptr %0, i64 448
  br label %51

27:                                               ; preds = %._crit_edge52, %._crit_edge47, %122, %._crit_edge, %20, %16, %14, %10, %8, %4, %2
  %28 = landingpad { ptr, i32 }
          cleanup
  br label %169

29:                                               ; preds = %.lr.ph, %43
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %43 ]
  %30 = load ptr, ptr %23, align 8, !tbaa !17
  %31 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %30, i64 %indvars.iv
  %32 = load double, ptr %31, align 8, !tbaa !18
  %33 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %3, double noundef %32)
          to label %34 unwind label %46

34:                                               ; preds = %29
  %35 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %33, i8 noundef signext 9)
          to label %36 unwind label %46

36:                                               ; preds = %34
  %37 = load ptr, ptr %23, align 8, !tbaa !17
  %38 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %37, i64 %indvars.iv, i32 1
  %39 = load double, ptr %38, align 8, !tbaa !26
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEd(ptr noundef nonnull align 8 dereferenceable(8) %35, double noundef %39)
          to label %41 unwind label %46

41:                                               ; preds = %36
  %42 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %40, ptr noundef nonnull @.str.14)
          to label %43 unwind label %46

43:                                               ; preds = %41
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %44 = load i64, ptr %5, align 8, !tbaa !5
  %45 = icmp ugt i64 %44, %indvars.iv.next
  br i1 %45, label %29, label %.preheader40, !llvm.loop !27

46:                                               ; preds = %41, %36, %34, %29
  %47 = landingpad { ptr, i32 }
          cleanup
  br label %169

._crit_edge:                                      ; preds = %119, %.preheader40
  %48 = getelementptr inbounds i8, ptr %0, i64 472
  %49 = load i64, ptr %48, align 8, !tbaa !29
  %50 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %49)
          to label %122 unwind label %27

51:                                               ; preds = %.lr.ph44, %119
  %indvars.iv58 = phi i64 [ 0, %.lr.ph44 ], [ %indvars.iv.next59, %119 ]
  %52 = load ptr, ptr %26, align 8, !tbaa !30
  %53 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %52, i64 %indvars.iv58
  %54 = load i32, ptr %53, align 8, !tbaa !31
  switch i32 %54, label %119 [
    i32 3, label %55
    i32 4, label %81
  ]

55:                                               ; preds = %51
  %56 = getelementptr inbounds i8, ptr %53, i64 8
  %57 = load ptr, ptr %56, align 8, !tbaa !33
  %58 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %57, i32 noundef 0, i32 noundef 0)
          to label %59 unwind label %79

59:                                               ; preds = %55
  %60 = load i32, ptr %58, align 4, !tbaa !34
  %61 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %60)
          to label %62 unwind label %79

62:                                               ; preds = %59
  %63 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %61, i8 noundef signext 9)
          to label %64 unwind label %79

64:                                               ; preds = %62
  %65 = load ptr, ptr %26, align 8, !tbaa !30
  %66 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %65, i64 %indvars.iv58, i32 2
  %67 = load ptr, ptr %66, align 8, !tbaa !33
  %68 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %67, i32 noundef 1, i32 noundef 0)
          to label %69 unwind label %79

69:                                               ; preds = %64
  %70 = load i32, ptr %68, align 4, !tbaa !34
  %71 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %63, i32 noundef %70)
          to label %72 unwind label %79

72:                                               ; preds = %69
  %73 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %71, i8 noundef signext 9)
          to label %74 unwind label %79

74:                                               ; preds = %72
  %75 = load ptr, ptr %26, align 8, !tbaa !30
  %76 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %75, i64 %indvars.iv58, i32 2
  %77 = load ptr, ptr %76, align 8, !tbaa !33
  %78 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %77, i32 noundef 2, i32 noundef 0)
          to label %.invoke62 unwind label %79

79:                                               ; preds = %.invoke62, %.invoke, %110, %108, %105, %100, %98, %95, %90, %88, %85, %81, %74, %72, %69, %64, %62, %59, %55
  %80 = landingpad { ptr, i32 }
          cleanup
  br label %169

81:                                               ; preds = %51
  %82 = getelementptr inbounds i8, ptr %53, i64 8
  %83 = load ptr, ptr %82, align 8, !tbaa !33
  %84 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %83, i32 noundef 0, i32 noundef 0)
          to label %85 unwind label %79

85:                                               ; preds = %81
  %86 = load i32, ptr %84, align 4, !tbaa !34
  %87 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %86)
          to label %88 unwind label %79

88:                                               ; preds = %85
  %89 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %87, i8 noundef signext 9)
          to label %90 unwind label %79

90:                                               ; preds = %88
  %91 = load ptr, ptr %26, align 8, !tbaa !30
  %92 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %91, i64 %indvars.iv58, i32 2
  %93 = load ptr, ptr %92, align 8, !tbaa !33
  %94 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %93, i32 noundef 1, i32 noundef 0)
          to label %95 unwind label %79

95:                                               ; preds = %90
  %96 = load i32, ptr %94, align 4, !tbaa !34
  %97 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %89, i32 noundef %96)
          to label %98 unwind label %79

98:                                               ; preds = %95
  %99 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %97, i8 noundef signext 9)
          to label %100 unwind label %79

100:                                              ; preds = %98
  %101 = load ptr, ptr %26, align 8, !tbaa !30
  %102 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %101, i64 %indvars.iv58, i32 2
  %103 = load ptr, ptr %102, align 8, !tbaa !33
  %104 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %103, i32 noundef 2, i32 noundef 0)
          to label %105 unwind label %79

105:                                              ; preds = %100
  %106 = load i32, ptr %104, align 4, !tbaa !34
  %107 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %99, i32 noundef %106)
          to label %108 unwind label %79

108:                                              ; preds = %105
  %109 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_c(ptr noundef nonnull align 8 dereferenceable(8) %107, i8 noundef signext 9)
          to label %110 unwind label %79

110:                                              ; preds = %108
  %111 = load ptr, ptr %26, align 8, !tbaa !30
  %112 = getelementptr inbounds %"class.EulerSolver2D::elm_type", ptr %111, i64 %indvars.iv58, i32 2
  %113 = load ptr, ptr %112, align 8, !tbaa !33
  %114 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %113, i32 noundef 3, i32 noundef 0)
          to label %.invoke62 unwind label %79

.invoke62:                                        ; preds = %110, %74
  %.sink = phi ptr [ %78, %74 ], [ %114, %110 ]
  %115 = phi ptr [ %73, %74 ], [ %109, %110 ]
  %116 = load i32, ptr %.sink, align 4, !tbaa !34
  %117 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %115, i32 noundef %116)
          to label %.invoke unwind label %79

.invoke:                                          ; preds = %.invoke62
  %118 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %117, ptr noundef nonnull @.str.14)
          to label %119 unwind label %79

119:                                              ; preds = %.invoke, %51
  %indvars.iv.next59 = add nuw nsw i64 %indvars.iv58, 1
  %120 = load i64, ptr %24, align 8, !tbaa !16
  %121 = icmp ugt i64 %120, %indvars.iv.next59
  br i1 %121, label %51, label %._crit_edge, !llvm.loop !35

122:                                              ; preds = %._crit_edge
  %123 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %50, ptr noundef nonnull @.str.14)
          to label %.preheader39 unwind label %27

.preheader39:                                     ; preds = %122
  %124 = load i64, ptr %48, align 8, !tbaa !29
  %.not54 = icmp eq i64 %124, 0
  br i1 %.not54, label %._crit_edge47, label %.lr.ph46

.lr.ph46:                                         ; preds = %.preheader39
  %125 = getelementptr inbounds i8, ptr %0, i64 480
  br label %129

._crit_edge47:                                    ; preds = %136, %.preheader39
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %3, ptr noundef nonnull @.str.14)
          to label %.preheader38 unwind label %27

.preheader38:                                     ; preds = %._crit_edge47
  %127 = load i64, ptr %48, align 8, !tbaa !29
  %.not55 = icmp eq i64 %127, 0
  br i1 %.not55, label %._crit_edge52, label %.preheader.lr.ph

.preheader.lr.ph:                                 ; preds = %.preheader38
  %128 = getelementptr inbounds i8, ptr %0, i64 480
  %.pre = load ptr, ptr %128, align 8, !tbaa !36
  br label %.preheader

129:                                              ; preds = %.lr.ph46, %136
  %.02945 = phi i64 [ 0, %.lr.ph46 ], [ %137, %136 ]
  %130 = load ptr, ptr %125, align 8, !tbaa !36
  %131 = getelementptr inbounds %"class.EulerSolver2D::bgrid_type", ptr %130, i64 %.02945, i32 1
  %132 = load i64, ptr %131, align 8, !tbaa !37
  %133 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %3, i64 noundef %132)
          to label %134 unwind label %140

134:                                              ; preds = %129
  %135 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %133, ptr noundef nonnull @.str.14)
          to label %136 unwind label %140

136:                                              ; preds = %134
  %137 = add nuw i64 %.02945, 1
  %138 = load i64, ptr %48, align 8, !tbaa !29
  %139 = icmp ult i64 %137, %138
  br i1 %139, label %129, label %._crit_edge47, !llvm.loop !39

140:                                              ; preds = %134, %129
  %141 = landingpad { ptr, i32 }
          cleanup
  br label %169

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge50
  %142 = phi i64 [ %127, %.preheader.lr.ph ], [ %146, %._crit_edge50 ]
  %143 = phi ptr [ %.pre, %.preheader.lr.ph ], [ %147, %._crit_edge50 ]
  %.02851 = phi i64 [ 0, %.preheader.lr.ph ], [ %148, %._crit_edge50 ]
  %144 = getelementptr inbounds %"class.EulerSolver2D::bgrid_type", ptr %143, i64 %.02851, i32 1
  %145 = load i64, ptr %144, align 8, !tbaa !37
  %.not56 = icmp eq i64 %145, 0
  br i1 %.not56, label %._crit_edge50, label %.lr.ph49

._crit_edge52:                                    ; preds = %._crit_edge50, %.preheader38
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %3)
          to label %168 unwind label %27

._crit_edge50.loopexit:                           ; preds = %160
  %.pre61 = load i64, ptr %48, align 8, !tbaa !29
  br label %._crit_edge50

._crit_edge50:                                    ; preds = %._crit_edge50.loopexit, %.preheader
  %146 = phi i64 [ %.pre61, %._crit_edge50.loopexit ], [ %142, %.preheader ]
  %147 = phi ptr [ %162, %._crit_edge50.loopexit ], [ %143, %.preheader ]
  %148 = add nuw i64 %.02851, 1
  %149 = icmp ult i64 %148, %146
  br i1 %149, label %.preheader, label %._crit_edge52, !llvm.loop !40

.lr.ph49:                                         ; preds = %.preheader, %160
  %150 = phi ptr [ %162, %160 ], [ %143, %.preheader ]
  %.048 = phi i64 [ %161, %160 ], [ 0, %.preheader ]
  %151 = getelementptr inbounds %"class.EulerSolver2D::bgrid_type", ptr %150, i64 %.02851, i32 2
  %152 = load ptr, ptr %151, align 8, !tbaa !41
  %153 = trunc i64 %.048 to i32
  %154 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIiEclEii(ptr noundef nonnull align 8 dereferenceable(40) %152, i32 noundef %153, i32 noundef 0)
          to label %155 unwind label %166

155:                                              ; preds = %.lr.ph49
  %156 = load i32, ptr %154, align 4, !tbaa !34
  %157 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEi(ptr noundef nonnull align 8 dereferenceable(8) %3, i32 noundef %156)
          to label %158 unwind label %166

158:                                              ; preds = %155
  %159 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %157, ptr noundef nonnull @.str.14)
          to label %160 unwind label %166

160:                                              ; preds = %158
  %161 = add nuw i64 %.048, 1
  %162 = load ptr, ptr %128, align 8, !tbaa !36
  %163 = getelementptr inbounds %"class.EulerSolver2D::bgrid_type", ptr %162, i64 %.02851, i32 1
  %164 = load i64, ptr %163, align 8, !tbaa !37
  %165 = icmp ult i64 %161, %164
  br i1 %165, label %.lr.ph49, label %._crit_edge50.loopexit, !llvm.loop !42

166:                                              ; preds = %158, %155, %.lr.ph49
  %167 = landingpad { ptr, i32 }
          cleanup
  br label %169

168:                                              ; preds = %._crit_edge52
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #5
  ret void

169:                                              ; preds = %166, %140, %79, %46, %27
  %.pn = phi { ptr, i32 } [ %47, %46 ], [ %80, %79 ], [ %141, %140 ], [ %167, %166 ], [ %28, %27 ]
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %3) #5
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %3) #5
  resume { ptr, i32 } %.pn
}

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { inlinehint mustprogress uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { 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 #5 = { 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, !12, i64 408}
!6 = !{!"_ZTSN13EulerSolver2D10MainData2DE", !7, i64 0, !7, i64 32, !7, i64 64, !7, i64 96, !7, i64 128, !7, i64 160, !12, i64 192, !7, i64 200, !7, i64 232, !13, i64 264, !7, i64 272, !7, i64 304, !12, i64 336, !13, i64 344, !13, i64 352, !13, i64 360, !13, i64 368, !13, i64 376, !13, i64 384, !13, i64 392, !13, i64 400, !12, i64 408, !9, i64 416, !12, i64 424, !12, i64 432, !12, i64 440, !9, i64 448, !12, i64 456, !9, i64 464, !12, i64 472, !9, i64 480, !12, i64 488, !9, i64 496, !12, i64 504}
!7 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !8, i64 0, !12, i64 8, !10, i64 16}
!8 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !9, i64 0}
!9 = !{!"any pointer", !10, i64 0}
!10 = !{!"omnipotent char", !11, i64 0}
!11 = !{!"Simple C++ TBAA"}
!12 = !{!"long", !10, i64 0}
!13 = !{!"double", !10, i64 0}
!14 = !{!6, !12, i64 424}
!15 = !{!6, !12, i64 432}
!16 = !{!6, !12, i64 440}
!17 = !{!6, !9, i64 416}
!18 = !{!19, !13, i64 0}
!19 = !{!"_ZTSN13EulerSolver2D9node_typeE", !13, i64 0, !13, i64 8, !20, i64 16, !9, i64 24, !20, i64 32, !21, i64 40, !13, i64 64, !20, i64 72, !20, i64 76, !9, i64 80, !13, i64 88, !9, i64 96, !9, i64 104, !9, i64 112, !9, i64 120, !9, i64 128, !9, i64 136, !9, i64 144, !9, i64 152, !9, i64 160, !9, i64 168, !9, i64 176, !9, i64 184, !9, i64 192, !13, i64 200, !13, i64 208, !13, i64 216, !9, i64 224, !9, i64 232, !9, i64 240}
!20 = !{!"int", !10, i64 0}
!21 = !{!"_ZTS8Vector1DIiE", !22, i64 0}
!22 = !{!"_ZTSSt6vectorIiSaIiEE", !23, i64 0}
!23 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !24, i64 0}
!24 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !25, i64 0}
!25 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!26 = !{!19, !13, i64 8}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = !{!6, !12, i64 472}
!30 = !{!6, !9, i64 448}
!31 = !{!32, !20, i64 0}
!32 = !{!"_ZTSN13EulerSolver2D8elm_typeE", !20, i64 0, !9, i64 8, !20, i64 16, !9, i64 24, !13, i64 32, !13, i64 40, !13, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !9, i64 88, !13, i64 96, !13, i64 104, !20, i64 112, !20, i64 116, !21, i64 120, !13, i64 144, !9, i64 152, !9, i64 160, !20, i64 168}
!33 = !{!32, !9, i64 8}
!34 = !{!20, !20, i64 0}
!35 = distinct !{!35, !28}
!36 = !{!6, !9, i64 480}
!37 = !{!38, !12, i64 32}
!38 = !{!"_ZTSN13EulerSolver2D10bgrid_typeE", !7, i64 0, !12, i64 32, !9, i64 40, !12, i64 48, !9, i64 56, !9, i64 64, !9, i64 72, !9, i64 80, !9, i64 88, !9, i64 96, !9, i64 104, !9, i64 112, !9, i64 120}
!39 = distinct !{!39, !28}
!40 = distinct !{!40, !28}
!41 = !{!38, !9, i64 40}
!42 = distinct !{!42, !28}


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