; LLVM IR from LukeMcCulloch/cfd_solvers_cpp :: src/EulerUnsteady2D.ll (Z20program_2D_euler_rk2v)

; 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_ostream" = type { ptr, %"class.std::basic_ios" }
%"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.std::locale" = type { ptr }
%"class.EulerSolver2D::Solver" = type { i8 }
%"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.std::allocator" = type { i8 }
%"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.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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [28 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: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

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

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

; 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) #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20program_2D_euler_rk2v() #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca i32, align 4
  %2 = alloca %"class.EulerSolver2D::Solver", align 1
  %3 = alloca %"class.std::__cxx11::basic_string", align 8
  %4 = alloca %"class.std::allocator", align 1
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca %"class.std::__cxx11::basic_string", align 8
  %8 = alloca %"class.std::allocator", align 1
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::allocator", align 1
  %11 = alloca %"class.EulerSolver2D::MainData2D", align 8
  %12 = alloca %"class.std::__cxx11::basic_string", align 8
  %13 = alloca %"class.std::__cxx11::basic_string", align 8
  %14 = alloca i64, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %1) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %2) #8
  call void @_ZN13EulerSolver2D6SolverC1Ev(ptr noundef nonnull align 1 dereferenceable(1) %2)
  call void @llvm.lifetime.start.p0(i64 32, ptr %3) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %4) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %3, ptr noundef @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %4)
          to label %15 unwind label %61

15:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %8) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %7, ptr noundef @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %8)
          to label %16 unwind label %65

16:                                               ; preds = %15
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr %10) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %10)
          to label %17 unwind label %69

17:                                               ; preds = %16
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  call void @llvm.lifetime.start.p0(i64 512, ptr %11) #8
  invoke void @_ZN13EulerSolver2D10MainData2DC1Ev(ptr noundef nonnull align 8 dereferenceable(512) %11)
          to label %18 unwind label %73

18:                                               ; preds = %17
  %19 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 15
  store double 0.000000e+00, ptr %19, align 8, !tbaa !5
  %20 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 20
  store double 1.400000e+00, ptr %20, align 8, !tbaa !14
  %21 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 13
  store double 0x3FEE666666666666, ptr %21, align 8, !tbaa !15
  %22 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 14
  store double 0x3FE6666666666666, ptr %22, align 8, !tbaa !16
  %23 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 12
  store i64 5000, ptr %23, align 8, !tbaa !17
  %24 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 10
  %25 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %24, ptr noundef @.str.12)
          to label %26 unwind label %77

26:                                               ; preds = %18
  %27 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 11
  %28 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %27, ptr noundef @.str.13)
          to label %29 unwind label %77

29:                                               ; preds = %26
  %30 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 6
  store i64 4, ptr %30, align 8, !tbaa !18
  %31 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 7
  %32 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %31, ptr noundef @.str.14)
          to label %33 unwind label %77

33:                                               ; preds = %29
  %34 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 8
  %35 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %34, ptr noundef @.str.15)
          to label %36 unwind label %77

36:                                               ; preds = %33
  %37 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 9
  store double 1.000000e+00, ptr %37, align 8, !tbaa !19
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %12, ptr noundef nonnull align 8 dereferenceable(32) %3)
          to label %38 unwind label %77

38:                                               ; preds = %36
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %13, ptr noundef nonnull align 8 dereferenceable(32) %7)
          to label %39 unwind label %81

39:                                               ; preds = %38
  invoke void @_ZN13EulerSolver2D10MainData2D9read_gridENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(512) %11, ptr noundef %12, ptr noundef %13)
          to label %40 unwind label %85

40:                                               ; preds = %39
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  %41 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.16)
          to label %42 unwind label %77

42:                                               ; preds = %40
  %43 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %41, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %44 unwind label %77

44:                                               ; preds = %42
  %45 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.17)
          to label %46 unwind label %77

46:                                               ; preds = %44
  %47 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 21
  %48 = load i64, ptr %47, align 8, !tbaa !20
  %49 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %45, i64 noundef %48)
          to label %50 unwind label %77

50:                                               ; preds = %46
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef @.str.18)
          to label %52 unwind label %77

52:                                               ; preds = %50
  %53 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %51, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %54 unwind label %77

54:                                               ; preds = %52
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  store i64 0, ptr %14, align 8, !tbaa !21
  br label %55

55:                                               ; preds = %146, %54
  %56 = load i64, ptr %14, align 8, !tbaa !21
  %57 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 21
  %58 = load i64, ptr %57, align 8, !tbaa !20
  %59 = icmp ult i64 %56, %58
  br i1 %59, label %90, label %60

60:                                               ; preds = %55
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %174

61:                                               ; preds = %0
  %62 = landingpad { ptr, i32 }
          cleanup
  %63 = extractvalue { ptr, i32 } %62, 0
  store ptr %63, ptr %5, align 8
  %64 = extractvalue { ptr, i32 } %62, 1
  store i32 %64, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %4) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %4) #8
  br label %202

65:                                               ; preds = %15
  %66 = landingpad { ptr, i32 }
          cleanup
  %67 = extractvalue { ptr, i32 } %66, 0
  store ptr %67, ptr %5, align 8
  %68 = extractvalue { ptr, i32 } %66, 1
  store i32 %68, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %8) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %8) #8
  br label %201

69:                                               ; preds = %16
  %70 = landingpad { ptr, i32 }
          cleanup
  %71 = extractvalue { ptr, i32 } %70, 0
  store ptr %71, ptr %5, align 8
  %72 = extractvalue { ptr, i32 } %70, 1
  store i32 %72, ptr %6, align 4
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %10) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %10) #8
  br label %200

73:                                               ; preds = %17
  %74 = landingpad { ptr, i32 }
          cleanup
  %75 = extractvalue { ptr, i32 } %74, 0
  store ptr %75, ptr %5, align 8
  %76 = extractvalue { ptr, i32 } %74, 1
  store i32 %76, ptr %6, align 4
  br label %199

77:                                               ; preds = %196, %195, %194, %193, %192, %190, %188, %186, %184, %183, %182, %180, %176, %174, %52, %50, %46, %44, %42, %40, %36, %33, %29, %26, %18
  %78 = landingpad { ptr, i32 }
          cleanup
  %79 = extractvalue { ptr, i32 } %78, 0
  store ptr %79, ptr %5, align 8
  %80 = extractvalue { ptr, i32 } %78, 1
  store i32 %80, ptr %6, align 4
  br label %198

81:                                               ; preds = %38
  %82 = landingpad { ptr, i32 }
          cleanup
  %83 = extractvalue { ptr, i32 } %82, 0
  store ptr %83, ptr %5, align 8
  %84 = extractvalue { ptr, i32 } %82, 1
  store i32 %84, ptr %6, align 4
  br label %89

85:                                               ; preds = %39
  %86 = landingpad { ptr, i32 }
          cleanup
  %87 = extractvalue { ptr, i32 } %86, 0
  store ptr %87, ptr %5, align 8
  %88 = extractvalue { ptr, i32 } %86, 1
  store i32 %88, ptr %6, align 4
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %13) #8
  br label %89

89:                                               ; preds = %85, %81
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %12) #8
  br label %198

90:                                               ; preds = %55
  %91 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #9
          to label %92 unwind label %149

92:                                               ; preds = %90
  %93 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 6
  %94 = load i64, ptr %93, align 8, !tbaa !18
  %95 = trunc i64 %94 to i32
  invoke void @_ZN7Array2DIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %91, i32 noundef %95, i32 noundef 1)
          to label %96 unwind label %153

96:                                               ; preds = %92
  %97 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 22
  %98 = load ptr, ptr %97, align 8, !tbaa !22
  %99 = load i64, ptr %14, align 8, !tbaa !21
  %100 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %98, i64 %99
  %101 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %100, i32 0, i32 18
  store ptr %91, ptr %101, align 8, !tbaa !23
  %102 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #9
          to label %103 unwind label %149

103:                                              ; preds = %96
  %104 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 6
  %105 = load i64, ptr %104, align 8, !tbaa !18
  %106 = trunc i64 %105 to i32
  invoke void @_ZN7Array2DIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %102, i32 noundef %106, i32 noundef 1)
          to label %107 unwind label %157

107:                                              ; preds = %103
  %108 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 22
  %109 = load ptr, ptr %108, align 8, !tbaa !22
  %110 = load i64, ptr %14, align 8, !tbaa !21
  %111 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %109, i64 %110
  %112 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %111, i32 0, i32 19
  store ptr %102, ptr %112, align 8, !tbaa !31
  %113 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #9
          to label %114 unwind label %149

114:                                              ; preds = %107
  %115 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 6
  %116 = load i64, ptr %115, align 8, !tbaa !18
  %117 = trunc i64 %116 to i32
  invoke void @_ZN7Array2DIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %113, i32 noundef %117, i32 noundef 1)
          to label %118 unwind label %161

118:                                              ; preds = %114
  %119 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 22
  %120 = load ptr, ptr %119, align 8, !tbaa !22
  %121 = load i64, ptr %14, align 8, !tbaa !21
  %122 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %120, i64 %121
  %123 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %122, i32 0, i32 21
  store ptr %113, ptr %123, align 8, !tbaa !32
  %124 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #9
          to label %125 unwind label %149

125:                                              ; preds = %118
  %126 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 6
  %127 = load i64, ptr %126, align 8, !tbaa !18
  %128 = trunc i64 %127 to i32
  invoke void @_ZN7Array2DIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %124, i32 noundef %128, i32 noundef 2)
          to label %129 unwind label %165

129:                                              ; preds = %125
  %130 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 22
  %131 = load ptr, ptr %130, align 8, !tbaa !22
  %132 = load i64, ptr %14, align 8, !tbaa !21
  %133 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %131, i64 %132
  %134 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %133, i32 0, i32 22
  store ptr %124, ptr %134, align 8, !tbaa !33
  %135 = invoke noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #9
          to label %136 unwind label %149

136:                                              ; preds = %129
  %137 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 6
  %138 = load i64, ptr %137, align 8, !tbaa !18
  %139 = trunc i64 %138 to i32
  invoke void @_ZN7Array2DIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %135, i32 noundef %139, i32 noundef 1)
          to label %140 unwind label %169

140:                                              ; preds = %136
  %141 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 22
  %142 = load ptr, ptr %141, align 8, !tbaa !22
  %143 = load i64, ptr %14, align 8, !tbaa !21
  %144 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %142, i64 %143
  %145 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %144, i32 0, i32 23
  store ptr %135, ptr %145, align 8, !tbaa !34
  br label %146

146:                                              ; preds = %140
  %147 = load i64, ptr %14, align 8, !tbaa !21
  %148 = add i64 %147, 1
  store i64 %148, ptr %14, align 8, !tbaa !21
  br label %55, !llvm.loop !35

149:                                              ; preds = %129, %118, %107, %96, %90
  %150 = landingpad { ptr, i32 }
          cleanup
  %151 = extractvalue { ptr, i32 } %150, 0
  store ptr %151, ptr %5, align 8
  %152 = extractvalue { ptr, i32 } %150, 1
  store i32 %152, ptr %6, align 4
  br label %173

153:                                              ; preds = %92
  %154 = landingpad { ptr, i32 }
          cleanup
  %155 = extractvalue { ptr, i32 } %154, 0
  store ptr %155, ptr %5, align 8
  %156 = extractvalue { ptr, i32 } %154, 1
  store i32 %156, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %91, i64 noundef 40) #10
  br label %173

157:                                              ; preds = %103
  %158 = landingpad { ptr, i32 }
          cleanup
  %159 = extractvalue { ptr, i32 } %158, 0
  store ptr %159, ptr %5, align 8
  %160 = extractvalue { ptr, i32 } %158, 1
  store i32 %160, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %102, i64 noundef 40) #10
  br label %173

161:                                              ; preds = %114
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %5, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %113, i64 noundef 40) #10
  br label %173

165:                                              ; preds = %125
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %5, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %124, i64 noundef 40) #10
  br label %173

169:                                              ; preds = %136
  %170 = landingpad { ptr, i32 }
          cleanup
  %171 = extractvalue { ptr, i32 } %170, 0
  store ptr %171, ptr %5, align 8
  %172 = extractvalue { ptr, i32 } %170, 1
  store i32 %172, ptr %6, align 4
  call void @_ZdlPvm(ptr noundef %135, i64 noundef 40) #10
  br label %173

173:                                              ; preds = %169, %165, %161, %157, %153, %149
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %198

174:                                              ; preds = %60
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.19)
          to label %176 unwind label %77

176:                                              ; preds = %174
  %177 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 6
  %178 = load i64, ptr %177, align 8, !tbaa !18
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %175, i64 noundef %178)
          to label %180 unwind label %77

180:                                              ; preds = %176
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %182 unwind label %77

182:                                              ; preds = %180
  invoke void @_ZN13EulerSolver2D10MainData2D19construct_grid_dataEv(ptr noundef nonnull align 8 dereferenceable(512) %11)
          to label %183 unwind label %77

183:                                              ; preds = %182
  invoke void @_ZN13EulerSolver2D10MainData2D15check_grid_dataEv(ptr noundef nonnull align 8 dereferenceable(512) %11)
          to label %184 unwind label %77

184:                                              ; preds = %183
  %185 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef @.str.20)
          to label %186 unwind label %77

186:                                              ; preds = %184
  %187 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %185, ptr noundef @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %188 unwind label %77

188:                                              ; preds = %186
  %189 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 0
  invoke void @_ZN13EulerSolver2D10MainData2D18write_tecplot_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512) %11, ptr noundef nonnull align 8 dereferenceable(32) %189)
          to label %190 unwind label %77

190:                                              ; preds = %188
  %191 = getelementptr inbounds %"class.EulerSolver2D::MainData2D", ptr %11, i32 0, i32 2
  invoke void @_ZN13EulerSolver2D10MainData2D15write_grid_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512) %11, ptr noundef nonnull align 8 dereferenceable(32) %191)
          to label %192 unwind label %77

192:                                              ; preds = %190
  invoke void @_ZN13EulerSolver2D6Solver20compute_lsq_coeff_ncERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 8 dereferenceable(512) %11)
          to label %193 unwind label %77

193:                                              ; preds = %192
  invoke void @_ZN13EulerSolver2D6Solver18check_lsq_coeff_ncERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 8 dereferenceable(512) %11)
          to label %194 unwind label %77

194:                                              ; preds = %193
  invoke void @_ZN13EulerSolver2D6Solver34initial_solution_shock_diffractionERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 8 dereferenceable(512) %11)
          to label %195 unwind label %77

195:                                              ; preds = %194
  invoke void @_ZN13EulerSolver2D10MainData2D18write_tecplot_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512) %11, ptr noundef nonnull align 8 dereferenceable(32) %9)
          to label %196 unwind label %77

196:                                              ; preds = %195
  invoke void @_ZN13EulerSolver2D6Solver17euler_solver_mainERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1) %2, ptr noundef nonnull align 8 dereferenceable(512) %11)
          to label %197 unwind label %77

197:                                              ; preds = %196
  call void @_ZN13EulerSolver2D10MainData2DD1Ev(ptr noundef nonnull align 8 dereferenceable(512) %11) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr %11) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #8
  call void @_ZN13EulerSolver2D6SolverD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #8
  ret void

198:                                              ; preds = %173, %89, %77
  call void @_ZN13EulerSolver2D10MainData2DD1Ev(ptr noundef nonnull align 8 dereferenceable(512) %11) #8
  br label %199

199:                                              ; preds = %198, %73
  call void @llvm.lifetime.end.p0(i64 512, ptr %11) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %200

200:                                              ; preds = %199, %69
  call void @llvm.lifetime.end.p0(i64 32, ptr %9) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %7) #8
  br label %201

201:                                              ; preds = %200, %65
  call void @llvm.lifetime.end.p0(i64 32, ptr %7) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %3) #8
  br label %202

202:                                              ; preds = %201, %61
  call void @llvm.lifetime.end.p0(i64 32, ptr %3) #8
  call void @_ZN13EulerSolver2D6SolverD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %2) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr %2) #8
  call void @llvm.lifetime.end.p0(i64 4, ptr %1) #8
  br label %203

203:                                              ; preds = %202
  %204 = load ptr, ptr %5, align 8
  %205 = load i32, ptr %6, align 4
  %206 = insertvalue { ptr, i32 } poison, ptr %204, 0
  %207 = insertvalue { ptr, i32 } %206, i32 %205, 1
  resume { ptr, i32 } %207
}

declare void @_ZN13EulerSolver2D6SolverC1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4

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

declare void @_ZN13EulerSolver2D10MainData2D9read_gridENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef, ptr noundef) #4

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

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) #5

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

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

declare void @_ZN13EulerSolver2D10MainData2D19construct_grid_dataEv(ptr noundef nonnull align 8 dereferenceable(512)) #4

declare void @_ZN13EulerSolver2D10MainData2D15check_grid_dataEv(ptr noundef nonnull align 8 dereferenceable(512)) #4

declare void @_ZN13EulerSolver2D10MainData2D18write_tecplot_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare void @_ZN13EulerSolver2D10MainData2D15write_grid_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(32)) #4

declare void @_ZN13EulerSolver2D6Solver20compute_lsq_coeff_ncERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(512)) #4

declare void @_ZN13EulerSolver2D6Solver18check_lsq_coeff_ncERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(512)) #4

declare void @_ZN13EulerSolver2D6Solver34initial_solution_shock_diffractionERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(512)) #4

declare void @_ZN13EulerSolver2D6Solver17euler_solver_mainERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(512)) #4

; Function Attrs: nounwind
declare void @_ZN13EulerSolver2D6SolverD1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #7

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

declare void @_ZN13EulerSolver2D10MainData2DC1Ev(ptr)

declare void @_ZN13EulerSolver2D10MainData2DD1Ev(ptr)

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { 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 #4 = { "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 = { 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 #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 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
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, !13, i64 360}
!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, !13, i64 400}
!15 = !{!6, !13, i64 344}
!16 = !{!6, !13, i64 352}
!17 = !{!6, !12, i64 336}
!18 = !{!6, !12, i64 192}
!19 = !{!6, !13, i64 264}
!20 = !{!6, !12, i64 408}
!21 = !{!12, !12, i64 0}
!22 = !{!6, !9, i64 416}
!23 = !{!24, !9, i64 152}
!24 = !{!"_ZTSN13EulerSolver2D9node_typeE", !13, i64 0, !13, i64 8, !25, i64 16, !9, i64 24, !25, i64 32, !26, i64 40, !13, i64 64, !25, i64 72, !25, 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}
!25 = !{!"int", !10, i64 0}
!26 = !{!"_ZTS8Vector1DIiE", !27, i64 0}
!27 = !{!"_ZTSSt6vectorIiSaIiEE", !28, i64 0}
!28 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !29, i64 0}
!29 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !30, i64 0}
!30 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!31 = !{!24, !9, i64 160}
!32 = !{!24, !9, i64 176}
!33 = !{!24, !9, i64 184}
!34 = !{!24, !9, i64 192}
!35 = distinct !{!35, !36}
!36 = !{!"llvm.loop.mustprogress"}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.std::basic_ostream" = type { ptr, %"class.std::basic_ios" }
%"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.std::locale" = type { ptr }
%"class.EulerSolver2D::Solver" = type { i8 }
%"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.std::allocator" = type { i8 }
%"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.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 }

@_ZSt4cout = external global %"class.std::basic_ostream", align 8
@.str.9 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [7 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [28 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: mustprogress nounwind uwtable
declare void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32), ptr noundef, ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #2 align 2

declare i32 @__gxx_personality_v0(...)

; 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 nounwind uwtable
declare void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32)) unnamed_addr #1 align 2

; 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 #3

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

; Function Attrs: inlinehint mustprogress uwtable
declare noundef nonnull align 8 dereferenceable(8) ptr @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_(ptr noundef nonnull align 8 dereferenceable(8)) #3

; Function Attrs: mustprogress uwtable
define dso_local void @_Z20program_2D_euler_rk2v() local_unnamed_addr #2 personality ptr @__gxx_personality_v0 {
  %1 = alloca %"class.EulerSolver2D::Solver", align 1
  %2 = alloca %"class.std::__cxx11::basic_string", align 8
  %3 = alloca %"class.std::allocator", align 1
  %4 = alloca %"class.std::__cxx11::basic_string", align 8
  %5 = alloca %"class.std::allocator", align 1
  %6 = alloca %"class.std::__cxx11::basic_string", align 8
  %7 = alloca %"class.std::allocator", align 1
  %8 = alloca %"class.EulerSolver2D::MainData2D", align 8
  %9 = alloca %"class.std::__cxx11::basic_string", align 8
  %10 = alloca %"class.std::__cxx11::basic_string", align 8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %1) #8
  call void @_ZN13EulerSolver2D6SolverC1Ev(ptr noundef nonnull align 1 dereferenceable(1) %1)
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %3) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %2, ptr noundef nonnull @.str.9, ptr noundef nonnull align 1 dereferenceable(1) %3)
          to label %11 unwind label %52

11:                                               ; preds = %0
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %5) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %4, ptr noundef nonnull @.str.10, ptr noundef nonnull align 1 dereferenceable(1) %5)
          to label %12 unwind label %54

12:                                               ; preds = %11
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 32, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 1, ptr nonnull %7) #8
  call void @_ZNSaIcEC2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2IS3_EEPKcRKS3_(ptr noundef nonnull align 8 dereferenceable(32) %6, ptr noundef nonnull @.str.11, ptr noundef nonnull align 1 dereferenceable(1) %7)
          to label %13 unwind label %56

13:                                               ; preds = %12
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %8) #8
  invoke void @_ZN13EulerSolver2D10MainData2DC1Ev(ptr noundef nonnull align 8 dereferenceable(512) %8)
          to label %14 unwind label %58

14:                                               ; preds = %13
  %15 = getelementptr inbounds i8, ptr %8, i64 360
  store double 0.000000e+00, ptr %15, align 8, !tbaa !5
  %16 = getelementptr inbounds i8, ptr %8, i64 400
  store double 1.400000e+00, ptr %16, align 8, !tbaa !14
  %17 = getelementptr inbounds i8, ptr %8, i64 344
  store <2 x double> <double 0x3FEE666666666666, double 0x3FE6666666666666>, ptr %17, align 8, !tbaa !15
  %18 = getelementptr inbounds i8, ptr %8, i64 336
  store i64 5000, ptr %18, align 8, !tbaa !16
  %19 = getelementptr inbounds i8, ptr %8, i64 272
  %20 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %19, ptr noundef nonnull @.str.12)
          to label %21 unwind label %60

21:                                               ; preds = %14
  %22 = getelementptr inbounds i8, ptr %8, i64 304
  %23 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %22, ptr noundef nonnull @.str.13)
          to label %24 unwind label %60

24:                                               ; preds = %21
  %25 = getelementptr inbounds i8, ptr %8, i64 192
  store i64 4, ptr %25, align 8, !tbaa !17
  %26 = getelementptr inbounds i8, ptr %8, i64 200
  %27 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %26, ptr noundef nonnull @.str.14)
          to label %28 unwind label %60

28:                                               ; preds = %24
  %29 = getelementptr inbounds i8, ptr %8, i64 232
  %30 = invoke noundef nonnull align 8 dereferenceable(32) ptr @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEaSEPKc(ptr noundef nonnull align 8 dereferenceable(32) %29, ptr noundef nonnull @.str.15)
          to label %31 unwind label %60

31:                                               ; preds = %28
  %32 = getelementptr inbounds i8, ptr %8, i64 264
  store double 1.000000e+00, ptr %32, align 8, !tbaa !18
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %9, ptr noundef nonnull align 8 dereferenceable(32) %2)
          to label %33 unwind label %60

33:                                               ; preds = %31
  invoke void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEC2ERKS4_(ptr noundef nonnull align 8 dereferenceable(32) %10, ptr noundef nonnull align 8 dereferenceable(32) %4)
          to label %34 unwind label %62

34:                                               ; preds = %33
  invoke void @_ZN13EulerSolver2D10MainData2D9read_gridENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(512) %8, ptr noundef nonnull %9, ptr noundef nonnull %10)
          to label %35 unwind label %64

35:                                               ; preds = %34
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  %36 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.16)
          to label %37 unwind label %60

37:                                               ; preds = %35
  %38 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %36, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %39 unwind label %60

39:                                               ; preds = %37
  %40 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.17)
          to label %41 unwind label %60

41:                                               ; preds = %39
  %42 = getelementptr inbounds i8, ptr %8, i64 408
  %43 = load i64, ptr %42, align 8, !tbaa !19
  %44 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %40, i64 noundef %43)
          to label %45 unwind label %60

45:                                               ; preds = %41
  %46 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %44, ptr noundef nonnull @.str.18)
          to label %47 unwind label %60

47:                                               ; preds = %45
  %48 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %46, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %.preheader unwind label %60

.preheader:                                       ; preds = %47
  %49 = load i64, ptr %42, align 8, !tbaa !19
  %.not = icmp eq i64 %49, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.preheader
  %50 = getelementptr inbounds i8, ptr %8, i64 416
  br label %67

._crit_edge:                                      ; preds = %100, %.preheader
  %51 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.19)
          to label %118 unwind label %60

52:                                               ; preds = %0
  %53 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %3) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %3) #8
  br label %142

54:                                               ; preds = %11
  %55 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %5) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %5) #8
  br label %141

56:                                               ; preds = %12
  %57 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt15__new_allocatorIcED2Ev(ptr noundef nonnull align 1 dereferenceable(1) %7) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %7) #8
  br label %140

58:                                               ; preds = %13
  %59 = landingpad { ptr, i32 }
          cleanup
  br label %139

60:                                               ; preds = %136, %135, %134, %133, %132, %130, %129, %127, %125, %124, %123, %121, %118, %._crit_edge, %47, %45, %41, %39, %37, %35, %31, %28, %24, %21, %14
  %61 = landingpad { ptr, i32 }
          cleanup
  br label %138

62:                                               ; preds = %33
  %63 = landingpad { ptr, i32 }
          cleanup
  br label %66

64:                                               ; preds = %34
  %65 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %10) #8
  br label %66

66:                                               ; preds = %64, %62
  %.pn = phi { ptr, i32 } [ %65, %64 ], [ %63, %62 ]
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %9) #8
  br label %138

67:                                               ; preds = %.lr.ph, %100
  %.038 = phi i64 [ 0, %.lr.ph ], [ %103, %100 ]
  %68 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #9
          to label %69 unwind label %106

69:                                               ; preds = %67
  %70 = load i64, ptr %25, align 8, !tbaa !17
  %71 = trunc i64 %70 to i32
  invoke void @_ZN7Array2DIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %68, i32 noundef %71, i32 noundef 1)
          to label %72 unwind label %108

72:                                               ; preds = %69
  %73 = load ptr, ptr %50, align 8, !tbaa !20
  %74 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %73, i64 %.038, i32 18
  store ptr %68, ptr %74, align 8, !tbaa !21
  %75 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #9
          to label %76 unwind label %106

76:                                               ; preds = %72
  %77 = load i64, ptr %25, align 8, !tbaa !17
  %78 = trunc i64 %77 to i32
  invoke void @_ZN7Array2DIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %75, i32 noundef %78, i32 noundef 1)
          to label %79 unwind label %110

79:                                               ; preds = %76
  %80 = load ptr, ptr %50, align 8, !tbaa !20
  %81 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %80, i64 %.038, i32 19
  store ptr %75, ptr %81, align 8, !tbaa !29
  %82 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #9
          to label %83 unwind label %106

83:                                               ; preds = %79
  %84 = load i64, ptr %25, align 8, !tbaa !17
  %85 = trunc i64 %84 to i32
  invoke void @_ZN7Array2DIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %82, i32 noundef %85, i32 noundef 1)
          to label %86 unwind label %112

86:                                               ; preds = %83
  %87 = load ptr, ptr %50, align 8, !tbaa !20
  %88 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %87, i64 %.038, i32 21
  store ptr %82, ptr %88, align 8, !tbaa !30
  %89 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #9
          to label %90 unwind label %106

90:                                               ; preds = %86
  %91 = load i64, ptr %25, align 8, !tbaa !17
  %92 = trunc i64 %91 to i32
  invoke void @_ZN7Array2DIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %89, i32 noundef %92, i32 noundef 2)
          to label %93 unwind label %114

93:                                               ; preds = %90
  %94 = load ptr, ptr %50, align 8, !tbaa !20
  %95 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %94, i64 %.038, i32 22
  store ptr %89, ptr %95, align 8, !tbaa !31
  %96 = invoke noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #9
          to label %97 unwind label %106

97:                                               ; preds = %93
  %98 = load i64, ptr %25, align 8, !tbaa !17
  %99 = trunc i64 %98 to i32
  invoke void @_ZN7Array2DIdEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %96, i32 noundef %99, i32 noundef 1)
          to label %100 unwind label %116

100:                                              ; preds = %97
  %101 = load ptr, ptr %50, align 8, !tbaa !20
  %102 = getelementptr inbounds %"class.EulerSolver2D::node_type", ptr %101, i64 %.038, i32 23
  store ptr %96, ptr %102, align 8, !tbaa !32
  %103 = add nuw i64 %.038, 1
  %104 = load i64, ptr %42, align 8, !tbaa !19
  %105 = icmp ult i64 %103, %104
  br i1 %105, label %67, label %._crit_edge, !llvm.loop !33

106:                                              ; preds = %93, %86, %79, %72, %67
  %107 = landingpad { ptr, i32 }
          cleanup
  br label %138

108:                                              ; preds = %69
  %109 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %68, i64 noundef 40) #10
  br label %138

110:                                              ; preds = %76
  %111 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %75, i64 noundef 40) #10
  br label %138

112:                                              ; preds = %83
  %113 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %82, i64 noundef 40) #10
  br label %138

114:                                              ; preds = %90
  %115 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %89, i64 noundef 40) #10
  br label %138

116:                                              ; preds = %97
  %117 = landingpad { ptr, i32 }
          cleanup
  call void @_ZdlPvm(ptr noundef nonnull %96, i64 noundef 40) #10
  br label %138

118:                                              ; preds = %._crit_edge
  %119 = load i64, ptr %25, align 8, !tbaa !17
  %120 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEm(ptr noundef nonnull align 8 dereferenceable(8) %51, i64 noundef %119)
          to label %121 unwind label %60

121:                                              ; preds = %118
  %122 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %120, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %123 unwind label %60

123:                                              ; preds = %121
  invoke void @_ZN13EulerSolver2D10MainData2D19construct_grid_dataEv(ptr noundef nonnull align 8 dereferenceable(512) %8)
          to label %124 unwind label %60

124:                                              ; preds = %123
  invoke void @_ZN13EulerSolver2D10MainData2D15check_grid_dataEv(ptr noundef nonnull align 8 dereferenceable(512) %8)
          to label %125 unwind label %60

125:                                              ; preds = %124
  %126 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) @_ZSt4cout, ptr noundef nonnull @.str.20)
          to label %127 unwind label %60

127:                                              ; preds = %125
  %128 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZNSolsEPFRSoS_E(ptr noundef nonnull align 8 dereferenceable(8) %126, ptr noundef nonnull @_ZSt4endlIcSt11char_traitsIcEERSt13basic_ostreamIT_T0_ES6_)
          to label %129 unwind label %60

129:                                              ; preds = %127
  invoke void @_ZN13EulerSolver2D10MainData2D18write_tecplot_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512) %8, ptr noundef nonnull align 8 dereferenceable(32) %8)
          to label %130 unwind label %60

130:                                              ; preds = %129
  %131 = getelementptr inbounds i8, ptr %8, i64 64
  invoke void @_ZN13EulerSolver2D10MainData2D15write_grid_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512) %8, ptr noundef nonnull align 8 dereferenceable(32) %131)
          to label %132 unwind label %60

132:                                              ; preds = %130
  invoke void @_ZN13EulerSolver2D6Solver20compute_lsq_coeff_ncERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 8 dereferenceable(512) %8)
          to label %133 unwind label %60

133:                                              ; preds = %132
  invoke void @_ZN13EulerSolver2D6Solver18check_lsq_coeff_ncERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 8 dereferenceable(512) %8)
          to label %134 unwind label %60

134:                                              ; preds = %133
  invoke void @_ZN13EulerSolver2D6Solver34initial_solution_shock_diffractionERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 8 dereferenceable(512) %8)
          to label %135 unwind label %60

135:                                              ; preds = %134
  invoke void @_ZN13EulerSolver2D10MainData2D18write_tecplot_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512) %8, ptr noundef nonnull align 8 dereferenceable(32) %6)
          to label %136 unwind label %60

136:                                              ; preds = %135
  invoke void @_ZN13EulerSolver2D6Solver17euler_solver_mainERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1) %1, ptr noundef nonnull align 8 dereferenceable(512) %8)
          to label %137 unwind label %60

137:                                              ; preds = %136
  call void @_ZN13EulerSolver2D10MainData2DD1Ev(ptr noundef nonnull align 8 dereferenceable(512) %8) #8
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @_ZN13EulerSolver2D6SolverD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %1) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %1) #8
  ret void

138:                                              ; preds = %106, %108, %110, %112, %114, %116, %66, %60
  %.pn17.pn = phi { ptr, i32 } [ %61, %60 ], [ %.pn, %66 ], [ %117, %116 ], [ %107, %106 ], [ %115, %114 ], [ %113, %112 ], [ %111, %110 ], [ %109, %108 ]
  call void @_ZN13EulerSolver2D10MainData2DD1Ev(ptr noundef nonnull align 8 dereferenceable(512) %8) #8
  br label %139

139:                                              ; preds = %138, %58
  %.pn17.pn.pn = phi { ptr, i32 } [ %.pn17.pn, %138 ], [ %59, %58 ]
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %8) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %6) #8
  br label %140

140:                                              ; preds = %139, %56
  %.pn17.pn.pn.pn = phi { ptr, i32 } [ %.pn17.pn.pn, %139 ], [ %57, %56 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %6) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %4) #8
  br label %141

141:                                              ; preds = %140, %54
  %.pn17.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn17.pn.pn.pn, %140 ], [ %55, %54 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %4) #8
  call void @_ZNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEED2Ev(ptr noundef nonnull align 8 dereferenceable(32) %2) #8
  br label %142

142:                                              ; preds = %141, %52
  %.pn17.pn.pn.pn.pn.pn = phi { ptr, i32 } [ %.pn17.pn.pn.pn.pn, %141 ], [ %53, %52 ]
  call void @llvm.lifetime.end.p0(i64 32, ptr nonnull %2) #8
  call void @_ZN13EulerSolver2D6SolverD1Ev(ptr noundef nonnull align 1 dereferenceable(1) %1) #8
  call void @llvm.lifetime.end.p0(i64 1, ptr nonnull %1) #8
  resume { ptr, i32 } %.pn17.pn.pn.pn.pn.pn
}

declare void @_ZN13EulerSolver2D6SolverC1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #4

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

declare void @_ZN13EulerSolver2D10MainData2D9read_gridENSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEES6_(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef, ptr noundef) local_unnamed_addr #4

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

; 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: nobuiltin allocsize(0)
declare noundef nonnull ptr @_Znwm(i64 noundef) local_unnamed_addr #5

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

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

declare void @_ZN13EulerSolver2D10MainData2D19construct_grid_dataEv(ptr noundef nonnull align 8 dereferenceable(512)) local_unnamed_addr #4

declare void @_ZN13EulerSolver2D10MainData2D15check_grid_dataEv(ptr noundef nonnull align 8 dereferenceable(512)) local_unnamed_addr #4

declare void @_ZN13EulerSolver2D10MainData2D18write_tecplot_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare void @_ZN13EulerSolver2D10MainData2D15write_grid_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(512), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #4

declare void @_ZN13EulerSolver2D6Solver20compute_lsq_coeff_ncERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(512)) local_unnamed_addr #4

declare void @_ZN13EulerSolver2D6Solver18check_lsq_coeff_ncERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(512)) local_unnamed_addr #4

declare void @_ZN13EulerSolver2D6Solver34initial_solution_shock_diffractionERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(512)) local_unnamed_addr #4

declare void @_ZN13EulerSolver2D6Solver17euler_solver_mainERNS_10MainData2DE(ptr noundef nonnull align 1 dereferenceable(1), ptr noundef nonnull align 8 dereferenceable(512)) local_unnamed_addr #4

; Function Attrs: nounwind
declare void @_ZN13EulerSolver2D6SolverD1Ev(ptr noundef nonnull align 1 dereferenceable(1)) unnamed_addr #7

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

declare void @_ZN13EulerSolver2D10MainData2DC1Ev(ptr) local_unnamed_addr

declare void @_ZN13EulerSolver2D10MainData2DD1Ev(ptr) local_unnamed_addr

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { 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 #4 = { "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 = { 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 #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 = { 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 #8 = { nounwind }
attributes #9 = { builtin allocsize(0) }
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, !13, i64 360}
!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, !13, i64 400}
!15 = !{!13, !13, i64 0}
!16 = !{!6, !12, i64 336}
!17 = !{!6, !12, i64 192}
!18 = !{!6, !13, i64 264}
!19 = !{!6, !12, i64 408}
!20 = !{!6, !9, i64 416}
!21 = !{!22, !9, i64 152}
!22 = !{!"_ZTSN13EulerSolver2D9node_typeE", !13, i64 0, !13, i64 8, !23, i64 16, !9, i64 24, !23, i64 32, !24, i64 40, !13, i64 64, !23, i64 72, !23, 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}
!23 = !{!"int", !10, i64 0}
!24 = !{!"_ZTS8Vector1DIiE", !25, i64 0}
!25 = !{!"_ZTSSt6vectorIiSaIiEE", !26, i64 0}
!26 = !{!"_ZTSSt12_Vector_baseIiSaIiEE", !27, i64 0}
!27 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE12_Vector_implE", !28, i64 0}
!28 = !{!"_ZTSNSt12_Vector_baseIiSaIiEE17_Vector_impl_dataE", !9, i64 0, !9, i64 8, !9, i64 16}
!29 = !{!22, !9, i64 160}
!30 = !{!22, !9, i64 176}
!31 = !{!22, !9, i64 184}
!32 = !{!22, !9, i64 192}
!33 = distinct !{!33, !34}
!34 = !{!"llvm.loop.mustprogress"}


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