; LLVM IR from LukeMcCulloch/cfd_solvers_cpp :: src/gridGen2D.ll (ZN6Grid2D9gridGen2D5buildEv)

; 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.1 }
%union.anon.1 = 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.Grid2D::gridGen2D" = type <{ float, float, float, float, float, float, i32, i32, %"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", ptr, ptr, i32, i32, i32, i32, ptr, ptr, ptr, ptr, float, float, i32, i32, i32, [4 x 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] }

@.str.6 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [31 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Grid2D9gridGen2D5buildEv(ptr noundef nonnull align 8 dereferenceable(276) %0) #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca i32, align 4
  %10 = alloca %"class.std::basic_ofstream", align 8
  store ptr %0, ptr %2, align 8, !tbaa !5
  %11 = load ptr, ptr %2, align 8
  %12 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #8
  %13 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 6
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 7
  %16 = load i32, ptr %15, align 4, !tbaa !16
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %12, i32 noundef %14, i32 noundef %16)
          to label %17 unwind label %55

17:                                               ; preds = %1
  %18 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 13
  store ptr %12, ptr %18, align 8, !tbaa !17
  %19 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #8
  %20 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 6
  %21 = load i32, ptr %20, align 8, !tbaa !9
  %22 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 7
  %23 = load i32, ptr %22, align 4, !tbaa !16
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %19, i32 noundef %21, i32 noundef %23)
          to label %24 unwind label %59

24:                                               ; preds = %17
  %25 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 14
  store ptr %19, ptr %25, align 8, !tbaa !18
  %26 = call i32 (ptr, ...) @printf(ptr noundef @.str.6)
  %27 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 1
  %28 = load float, ptr %27, align 4, !tbaa !19
  %29 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 0
  %30 = load float, ptr %29, align 8, !tbaa !20
  %31 = fsub float %28, %30
  %32 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 6
  %33 = load i32, ptr %32, align 8, !tbaa !9
  %34 = sub nsw i32 %33, 1
  %35 = sitofp i32 %34 to float
  %36 = fdiv float %31, %35
  %37 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 23
  store float %36, ptr %37, align 8, !tbaa !21
  %38 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 3
  %39 = load float, ptr %38, align 4, !tbaa !22
  %40 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 2
  %41 = load float, ptr %40, align 8, !tbaa !23
  %42 = fsub float %39, %41
  %43 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 7
  %44 = load i32, ptr %43, align 4, !tbaa !16
  %45 = sub nsw i32 %44, 1
  %46 = sitofp i32 %45 to float
  %47 = fdiv float %42, %46
  %48 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 24
  store float %47, ptr %48, align 4, !tbaa !24
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #9
  store i32 0, ptr %5, align 4, !tbaa !25
  br label %49

49:                                               ; preds = %99, %24
  %50 = load i32, ptr %5, align 4, !tbaa !25
  %51 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 7
  %52 = load i32, ptr %51, align 4, !tbaa !16
  %53 = icmp slt i32 %50, %52
  br i1 %53, label %63, label %54

54:                                               ; preds = %49
  store i32 2, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #9
  br label %102

55:                                               ; preds = %1
  %56 = landingpad { ptr, i32 }
          cleanup
  %57 = extractvalue { ptr, i32 } %56, 0
  store ptr %57, ptr %3, align 8
  %58 = extractvalue { ptr, i32 } %56, 1
  store i32 %58, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %12, i64 noundef 40) #10
  br label %277

59:                                               ; preds = %17
  %60 = landingpad { ptr, i32 }
          cleanup
  %61 = extractvalue { ptr, i32 } %60, 0
  store ptr %61, ptr %3, align 8
  %62 = extractvalue { ptr, i32 } %60, 1
  store i32 %62, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %19, i64 noundef 40) #10
  br label %277

63:                                               ; preds = %49
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #9
  store i32 0, ptr %7, align 4, !tbaa !25
  br label %64

64:                                               ; preds = %95, %63
  %65 = load i32, ptr %7, align 4, !tbaa !25
  %66 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 6
  %67 = load i32, ptr %66, align 8, !tbaa !9
  %68 = icmp slt i32 %65, %67
  br i1 %68, label %70, label %69

69:                                               ; preds = %64
  store i32 5, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #9
  br label %98

70:                                               ; preds = %64
  %71 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 0
  %72 = load float, ptr %71, align 8, !tbaa !20
  %73 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 23
  %74 = load float, ptr %73, align 8, !tbaa !21
  %75 = load i32, ptr %7, align 4, !tbaa !25
  %76 = sitofp i32 %75 to float
  %77 = call float @llvm.fmuladd.f32(float %74, float %76, float %72)
  %78 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 13
  %79 = load ptr, ptr %78, align 8, !tbaa !17
  %80 = load i32, ptr %7, align 4, !tbaa !25
  %81 = load i32, ptr %5, align 4, !tbaa !25
  %82 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEii(ptr noundef nonnull align 8 dereferenceable(40) %79, i32 noundef %80, i32 noundef %81)
  store float %77, ptr %82, align 4, !tbaa !26
  %83 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 2
  %84 = load float, ptr %83, align 8, !tbaa !23
  %85 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 24
  %86 = load float, ptr %85, align 4, !tbaa !24
  %87 = load i32, ptr %5, align 4, !tbaa !25
  %88 = sitofp i32 %87 to float
  %89 = call float @llvm.fmuladd.f32(float %86, float %88, float %84)
  %90 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 14
  %91 = load ptr, ptr %90, align 8, !tbaa !18
  %92 = load i32, ptr %7, align 4, !tbaa !25
  %93 = load i32, ptr %5, align 4, !tbaa !25
  %94 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEii(ptr noundef nonnull align 8 dereferenceable(40) %91, i32 noundef %92, i32 noundef %93)
  store float %89, ptr %94, align 4, !tbaa !26
  br label %95

95:                                               ; preds = %70
  %96 = load i32, ptr %7, align 4, !tbaa !25
  %97 = add nsw i32 %96, 1
  store i32 %97, ptr %7, align 4, !tbaa !25
  br label %64, !llvm.loop !27

98:                                               ; preds = %69
  br label %99

99:                                               ; preds = %98
  %100 = load i32, ptr %5, align 4, !tbaa !25
  %101 = add nsw i32 %100, 1
  store i32 %101, ptr %5, align 4, !tbaa !25
  br label %49, !llvm.loop !29

102:                                              ; preds = %54
  %103 = call i32 (ptr, ...) @printf(ptr noundef @.str.7)
  %104 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 6
  %105 = load i32, ptr %104, align 8, !tbaa !9
  %106 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 7
  %107 = load i32, ptr %106, align 4, !tbaa !16
  %108 = mul nsw i32 %105, %107
  %109 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 15
  store i32 %108, ptr %109, align 8, !tbaa !30
  %110 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #8
  %111 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 15
  %112 = load i32, ptr %111, align 8, !tbaa !30
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %110, i32 noundef %112, i32 noundef 1)
          to label %113 unwind label %126

113:                                              ; preds = %102
  %114 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 21
  store ptr %110, ptr %114, align 8, !tbaa !31
  %115 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #8
  %116 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 15
  %117 = load i32, ptr %116, align 8, !tbaa !30
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %115, i32 noundef %117, i32 noundef 1)
          to label %118 unwind label %130

118:                                              ; preds = %113
  %119 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 22
  store ptr %115, ptr %119, align 8, !tbaa !32
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #9
  store i32 0, ptr %8, align 4, !tbaa !25
  br label %120

120:                                              ; preds = %175, %118
  %121 = load i32, ptr %8, align 4, !tbaa !25
  %122 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 7
  %123 = load i32, ptr %122, align 4, !tbaa !16
  %124 = icmp slt i32 %121, %123
  br i1 %124, label %134, label %125

125:                                              ; preds = %120
  store i32 8, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #9
  br label %178

126:                                              ; preds = %102
  %127 = landingpad { ptr, i32 }
          cleanup
  %128 = extractvalue { ptr, i32 } %127, 0
  store ptr %128, ptr %3, align 8
  %129 = extractvalue { ptr, i32 } %127, 1
  store i32 %129, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %110, i64 noundef 40) #10
  br label %277

130:                                              ; preds = %113
  %131 = landingpad { ptr, i32 }
          cleanup
  %132 = extractvalue { ptr, i32 } %131, 0
  store ptr %132, ptr %3, align 8
  %133 = extractvalue { ptr, i32 } %131, 1
  store i32 %133, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %115, i64 noundef 40) #10
  br label %277

134:                                              ; preds = %120
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #9
  store i32 0, ptr %9, align 4, !tbaa !25
  br label %135

135:                                              ; preds = %171, %134
  %136 = load i32, ptr %9, align 4, !tbaa !25
  %137 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 6
  %138 = load i32, ptr %137, align 8, !tbaa !9
  %139 = icmp slt i32 %136, %138
  br i1 %139, label %141, label %140

140:                                              ; preds = %135
  store i32 11, ptr %6, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #9
  br label %174

141:                                              ; preds = %135
  %142 = load i32, ptr %9, align 4, !tbaa !25
  %143 = load i32, ptr %8, align 4, !tbaa !25
  %144 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 6
  %145 = load i32, ptr %144, align 8, !tbaa !9
  %146 = mul nsw i32 %143, %145
  %147 = add nsw i32 %142, %146
  %148 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 18
  store i32 %147, ptr %148, align 4, !tbaa !33
  %149 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 13
  %150 = load ptr, ptr %149, align 8, !tbaa !17
  %151 = load i32, ptr %9, align 4, !tbaa !25
  %152 = load i32, ptr %8, align 4, !tbaa !25
  %153 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEii(ptr noundef nonnull align 8 dereferenceable(40) %150, i32 noundef %151, i32 noundef %152)
  %154 = load float, ptr %153, align 4, !tbaa !26
  %155 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 21
  %156 = load ptr, ptr %155, align 8, !tbaa !31
  %157 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 18
  %158 = load i32, ptr %157, align 4, !tbaa !33
  %159 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %156, i32 noundef %158)
  store float %154, ptr %159, align 4, !tbaa !26
  %160 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 14
  %161 = load ptr, ptr %160, align 8, !tbaa !18
  %162 = load i32, ptr %9, align 4, !tbaa !25
  %163 = load i32, ptr %8, align 4, !tbaa !25
  %164 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEii(ptr noundef nonnull align 8 dereferenceable(40) %161, i32 noundef %162, i32 noundef %163)
  %165 = load float, ptr %164, align 4, !tbaa !26
  %166 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 22
  %167 = load ptr, ptr %166, align 8, !tbaa !32
  %168 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 18
  %169 = load i32, ptr %168, align 4, !tbaa !33
  %170 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %167, i32 noundef %169)
  store float %165, ptr %170, align 4, !tbaa !26
  br label %171

171:                                              ; preds = %141
  %172 = load i32, ptr %9, align 4, !tbaa !25
  %173 = add nsw i32 %172, 1
  store i32 %173, ptr %9, align 4, !tbaa !25
  br label %135, !llvm.loop !34

174:                                              ; preds = %140
  br label %175

175:                                              ; preds = %174
  %176 = load i32, ptr %8, align 4, !tbaa !25
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %8, align 4, !tbaa !25
  br label %120, !llvm.loop !35

178:                                              ; preds = %125
  %179 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %180 = call i32 (ptr, ...) @printf(ptr noundef @.str.9)
  %181 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 6
  %182 = load i32, ptr %181, align 8, !tbaa !9
  %183 = call i32 (ptr, ...) @printf(ptr noundef @.str.10, i32 noundef %182)
  %184 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 7
  %185 = load i32, ptr %184, align 4, !tbaa !16
  %186 = call i32 (ptr, ...) @printf(ptr noundef @.str.11, i32 noundef %185)
  %187 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 6
  %188 = load i32, ptr %187, align 8, !tbaa !9
  %189 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 7
  %190 = load i32, ptr %189, align 4, !tbaa !16
  %191 = mul nsw i32 %188, %190
  %192 = call i32 (ptr, ...) @printf(ptr noundef @.str.12, i32 noundef %191)
  %193 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 15
  %194 = load i32, ptr %193, align 8, !tbaa !30
  %195 = call i32 (ptr, ...) @printf(ptr noundef @.str.13, i32 noundef %194)
  %196 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %197 = call i32 (ptr, ...) @printf(ptr noundef @.str.14)
  %198 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %199 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #8
  %200 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 6
  %201 = load i32, ptr %200, align 8, !tbaa !9
  %202 = sub nsw i32 %201, 1
  %203 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 7
  %204 = load i32, ptr %203, align 4, !tbaa !16
  %205 = sub nsw i32 %204, 1
  %206 = mul nsw i32 %202, %205
  invoke void @_ZN7Array2DIiEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %199, i32 noundef %206, i32 noundef 4)
          to label %207 unwind label %265

207:                                              ; preds = %178
  %208 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 20
  store ptr %199, ptr %208, align 8, !tbaa !36
  %209 = call noalias noundef nonnull ptr @_Znwm(i64 noundef 40) #8
  %210 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 6
  %211 = load i32, ptr %210, align 8, !tbaa !9
  %212 = sub nsw i32 %211, 1
  %213 = mul nsw i32 2, %212
  %214 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 7
  %215 = load i32, ptr %214, align 4, !tbaa !16
  %216 = sub nsw i32 %215, 1
  %217 = mul nsw i32 %213, %216
  invoke void @_ZN7Array2DIiEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %209, i32 noundef %217, i32 noundef 3)
          to label %218 unwind label %269

218:                                              ; preds = %207
  %219 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 19
  store ptr %209, ptr %219, align 8, !tbaa !37
  %220 = call i32 (ptr, ...) @printf(ptr noundef @.str.15)
  call void @_ZN6Grid2D9gridGen2D18generate_tria_gridEv(ptr noundef nonnull align 8 dereferenceable(276) %11)
  %221 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %222 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 16
  %223 = load i32, ptr %222, align 4, !tbaa !38
  %224 = call i32 (ptr, ...) @printf(ptr noundef @.str.16, i32 noundef %223)
  %225 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %226 = call i32 (ptr, ...) @printf(ptr noundef @.str.17)
  %227 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 8
  call void @_ZN6Grid2D9gridGen2D18write_tecplot_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(276) %11, ptr noundef nonnull align 8 dereferenceable(32) %227)
  %228 = call i32 (ptr, ...) @printf(ptr noundef @.str.18)
  %229 = call i32 (ptr, ...) @printf(ptr noundef @.str.19)
  %230 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 10
  call void @_ZN6Grid2D9gridGen2D15write_grid_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(276) %11, ptr noundef nonnull align 8 dereferenceable(32) %230)
  %231 = call i32 (ptr, ...) @printf(ptr noundef @.str.20)
  %232 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %233 = call i32 (ptr, ...) @printf(ptr noundef @.str.21)
  call void @_ZN6Grid2D9gridGen2D18generate_quad_gridEv(ptr noundef nonnull align 8 dereferenceable(276) %11)
  %234 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %235 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 17
  %236 = load i32, ptr %235, align 8, !tbaa !39
  %237 = call i32 (ptr, ...) @printf(ptr noundef @.str.22, i32 noundef %236)
  %238 = call i32 (ptr, ...) @printf(ptr noundef @.str.8)
  %239 = call i32 (ptr, ...) @printf(ptr noundef @.str.23)
  %240 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 9
  call void @_ZN6Grid2D9gridGen2D18write_tecplot_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(276) %11, ptr noundef nonnull align 8 dereferenceable(32) %240)
  %241 = call i32 (ptr, ...) @printf(ptr noundef @.str.24)
  %242 = call i32 (ptr, ...) @printf(ptr noundef @.str.25)
  %243 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 11
  call void @_ZN6Grid2D9gridGen2D15write_grid_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(276) %11, ptr noundef nonnull align 8 dereferenceable(32) %243)
  %244 = call i32 (ptr, ...) @printf(ptr noundef @.str.26)
  %245 = call i32 (ptr, ...) @printf(ptr noundef @.str.27)
  call void @llvm.lifetime.start.p0(i64 512, ptr %10) #9
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %10)
  %246 = getelementptr inbounds %"class.Grid2D::gridGen2D", ptr %11, i32 0, i32 12
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %10, ptr noundef nonnull align 8 dereferenceable(32) %246, i32 noundef 16)
          to label %247 unwind label %273

247:                                              ; preds = %218
  %248 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @.str.28)
          to label %249 unwind label %273

249:                                              ; preds = %247
  %250 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @.str.29)
          to label %251 unwind label %273

251:                                              ; preds = %249
  %252 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @.str.30)
          to label %253 unwind label %273

253:                                              ; preds = %251
  %254 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @.str.31)
          to label %255 unwind label %273

255:                                              ; preds = %253
  %256 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @.str.32)
          to label %257 unwind label %273

257:                                              ; preds = %255
  %258 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %10, ptr noundef @.str.33)
          to label %259 unwind label %273

259:                                              ; preds = %257
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %10)
          to label %260 unwind label %273

260:                                              ; preds = %259
  %261 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.8)
          to label %262 unwind label %273

262:                                              ; preds = %260
  %263 = invoke i32 (ptr, ...) @printf(ptr noundef @.str.34)
          to label %264 unwind label %273

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

265:                                              ; preds = %178
  %266 = landingpad { ptr, i32 }
          cleanup
  %267 = extractvalue { ptr, i32 } %266, 0
  store ptr %267, ptr %3, align 8
  %268 = extractvalue { ptr, i32 } %266, 1
  store i32 %268, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %199, i64 noundef 40) #10
  br label %277

269:                                              ; preds = %207
  %270 = landingpad { ptr, i32 }
          cleanup
  %271 = extractvalue { ptr, i32 } %270, 0
  store ptr %271, ptr %3, align 8
  %272 = extractvalue { ptr, i32 } %270, 1
  store i32 %272, ptr %4, align 4
  call void @_ZdlPvm(ptr noundef %209, i64 noundef 40) #10
  br label %277

273:                                              ; preds = %262, %260, %259, %257, %255, %253, %251, %249, %247, %218
  %274 = landingpad { ptr, i32 }
          cleanup
  %275 = extractvalue { ptr, i32 } %274, 0
  store ptr %275, ptr %3, align 8
  %276 = extractvalue { ptr, i32 } %274, 1
  store i32 %276, ptr %4, align 4
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %10) #9
  call void @llvm.lifetime.end.p0(i64 512, ptr %10) #9
  br label %277

277:                                              ; preds = %273, %269, %265, %130, %126, %59, %55
  %278 = load ptr, ptr %3, align 8
  %279 = load i32, ptr %4, align 4
  %280 = insertvalue { ptr, i32 } poison, ptr %278, 0
  %281 = insertvalue { ptr, i32 } %280, i32 %279, 1
  resume { ptr, i32 } %281
}

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Grid2D9gridGen2D18generate_tria_gridEv(ptr noundef nonnull align 8 dereferenceable(276)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Grid2D9gridGen2D18write_tecplot_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(276), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Grid2D9gridGen2D15write_grid_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(276), ptr noundef nonnull align 8 dereferenceable(32)) #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Grid2D9gridGen2D18generate_quad_gridEv(ptr noundef nonnull align 8 dereferenceable(276)) #3 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #3 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) #3 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) #6

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

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

attributes #0 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { nounwind }
attributes #10 = { builtin nounwind }

!llvm.module.flags = !{!0, !1, !2, !3}
!llvm.ident = !{!4}

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !12, i64 24}
!10 = !{!"_ZTSN6Grid2D9gridGen2DE", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !12, i64 24, !12, i64 28, !13, i64 32, !13, i64 64, !13, i64 96, !13, i64 128, !13, i64 160, !6, i64 192, !6, i64 200, !12, i64 208, !12, i64 212, !12, i64 216, !12, i64 220, !6, i64 224, !6, i64 232, !6, i64 240, !6, i64 248, !11, i64 256, !11, i64 260, !12, i64 264, !12, i64 268, !12, i64 272}
!11 = !{!"float", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !14, i64 0, !15, i64 8, !7, i64 16}
!14 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !6, i64 0}
!15 = !{!"long", !7, i64 0}
!16 = !{!10, !12, i64 28}
!17 = !{!10, !6, i64 192}
!18 = !{!10, !6, i64 200}
!19 = !{!10, !11, i64 4}
!20 = !{!10, !11, i64 0}
!21 = !{!10, !11, i64 256}
!22 = !{!10, !11, i64 12}
!23 = !{!10, !11, i64 8}
!24 = !{!10, !11, i64 260}
!25 = !{!12, !12, i64 0}
!26 = !{!11, !11, i64 0}
!27 = distinct !{!27, !28}
!28 = !{!"llvm.loop.mustprogress"}
!29 = distinct !{!29, !28}
!30 = !{!10, !12, i64 208}
!31 = !{!10, !6, i64 240}
!32 = !{!10, !6, i64 248}
!33 = !{!10, !12, i64 220}
!34 = distinct !{!34, !28}
!35 = distinct !{!35, !28}
!36 = !{!10, !6, i64 232}
!37 = !{!10, !6, i64 224}
!38 = !{!10, !12, i64 212}
!39 = !{!10, !12, i64 216}


; 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.1 }
%union.anon.1 = 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 }

@.str.6 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [57 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [17 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [28 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [48 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [25 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [45 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [32 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.31 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.32 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.33 = external hidden unnamed_addr constant [39 x i8], align 1
@.str.34 = external hidden unnamed_addr constant [31 x i8], align 1

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

declare i32 @__gxx_personality_v0(...)

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6Grid2D9gridGen2D5buildEv(ptr noundef nonnull align 8 dereferenceable(276) %0) local_unnamed_addr #3 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %"class.std::basic_ofstream", align 8
  %3 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #8
  %4 = getelementptr inbounds i8, ptr %0, i64 24
  %5 = load i32, ptr %4, align 8, !tbaa !5
  %6 = getelementptr inbounds i8, ptr %0, i64 28
  %7 = load i32, ptr %6, align 4, !tbaa !15
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %3, i32 noundef %5, i32 noundef %7)
          to label %8 unwind label %48

8:                                                ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 192
  store ptr %3, ptr %9, align 8, !tbaa !16
  %10 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #8
  %11 = load i32, ptr %4, align 8, !tbaa !5
  %12 = load i32, ptr %6, align 4, !tbaa !15
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %10, i32 noundef %11, i32 noundef %12)
          to label %13 unwind label %50

13:                                               ; preds = %8
  %14 = getelementptr inbounds i8, ptr %0, i64 200
  store ptr %10, ptr %14, align 8, !tbaa !17
  %15 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.6)
  %16 = getelementptr inbounds i8, ptr %0, i64 4
  %17 = load <4 x float>, ptr %16, align 4
  %18 = shufflevector <4 x float> %17, <4 x float> poison, <2 x i32> <i32 0, i32 poison>
  %19 = load <4 x float>, ptr %0, align 8
  %20 = shufflevector <4 x float> %19, <4 x float> poison, <2 x i32> <i32 0, i32 poison>
  %21 = getelementptr inbounds i8, ptr %0, i64 256
  %22 = getelementptr inbounds i8, ptr %0, i64 12
  %23 = load float, ptr %22, align 4, !tbaa !18
  %24 = getelementptr inbounds i8, ptr %0, i64 8
  %25 = load float, ptr %24, align 8, !tbaa !19
  %26 = getelementptr inbounds i8, ptr %0, i64 260
  %27 = insertelement <2 x float> %18, float %23, i64 1
  %28 = insertelement <2 x float> %20, float %25, i64 1
  %29 = fsub <2 x float> %27, %28
  %30 = load <2 x i32>, ptr %4, align 8, !tbaa !20
  %31 = add nsw <2 x i32> %30, <i32 -1, i32 -1>
  %32 = sitofp <2 x i32> %31 to <2 x float>
  %33 = fdiv <2 x float> %29, %32
  store <2 x float> %33, ptr %21, align 8, !tbaa !21
  %34 = extractelement <2 x i32> %30, i64 1
  %35 = icmp sgt i32 %34, 0
  %36 = extractelement <2 x i32> %30, i64 0
  %37 = icmp sgt i32 %36, 0
  %or.cond = select i1 %35, i1 %37, i1 false
  br i1 %or.cond, label %.preheader29, label %._crit_edge32

.preheader29:                                     ; preds = %13, %._crit_edge
  %38 = phi i32 [ %52, %._crit_edge ], [ %34, %13 ]
  %39 = phi i32 [ %53, %._crit_edge ], [ %36, %13 ]
  %.02431 = phi i32 [ %54, %._crit_edge ], [ 0, %13 ]
  %40 = icmp sgt i32 %39, 0
  br i1 %40, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader29
  %41 = uitofp nneg i32 %.02431 to float
  br label %56

._crit_edge32:                                    ; preds = %._crit_edge, %13
  %42 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.7)
  %43 = load i32, ptr %4, align 8, !tbaa !5
  %44 = load i32, ptr %6, align 4, !tbaa !15
  %45 = mul nsw i32 %44, %43
  %46 = getelementptr inbounds i8, ptr %0, i64 208
  store i32 %45, ptr %46, align 8, !tbaa !22
  %47 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #8
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %47, i32 noundef %45, i32 noundef 1)
          to label %71 unwind label %106

48:                                               ; preds = %1
  %49 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %3, i64 noundef 40) #9
  br label %192

50:                                               ; preds = %8
  %51 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %10, i64 noundef 40) #9
  br label %192

._crit_edge.loopexit:                             ; preds = %56
  %.pre = load i32, ptr %6, align 4, !tbaa !15
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader29
  %52 = phi i32 [ %.pre, %._crit_edge.loopexit ], [ %38, %.preheader29 ]
  %53 = phi i32 [ %69, %._crit_edge.loopexit ], [ %39, %.preheader29 ]
  %54 = add nuw nsw i32 %.02431, 1
  %55 = icmp slt i32 %54, %52
  br i1 %55, label %.preheader29, label %._crit_edge32, !llvm.loop !23

56:                                               ; preds = %.lr.ph, %56
  %.02330 = phi i32 [ 0, %.lr.ph ], [ %68, %56 ]
  %57 = load float, ptr %0, align 8, !tbaa !26
  %58 = load float, ptr %21, align 8, !tbaa !27
  %59 = uitofp nneg i32 %.02330 to float
  %60 = tail call float @llvm.fmuladd.f32(float %58, float %59, float %57)
  %61 = load ptr, ptr %9, align 8, !tbaa !16
  %62 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEii(ptr noundef nonnull align 8 dereferenceable(40) %61, i32 noundef %.02330, i32 noundef %.02431)
  store float %60, ptr %62, align 4, !tbaa !21
  %63 = load float, ptr %24, align 8, !tbaa !19
  %64 = load float, ptr %26, align 4, !tbaa !28
  %65 = tail call float @llvm.fmuladd.f32(float %64, float %41, float %63)
  %66 = load ptr, ptr %14, align 8, !tbaa !17
  %67 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEii(ptr noundef nonnull align 8 dereferenceable(40) %66, i32 noundef %.02330, i32 noundef %.02431)
  store float %65, ptr %67, align 4, !tbaa !21
  %68 = add nuw nsw i32 %.02330, 1
  %69 = load i32, ptr %4, align 8, !tbaa !5
  %70 = icmp slt i32 %68, %69
  br i1 %70, label %56, label %._crit_edge.loopexit, !llvm.loop !29

71:                                               ; preds = %._crit_edge32
  %72 = getelementptr inbounds i8, ptr %0, i64 240
  store ptr %47, ptr %72, align 8, !tbaa !30
  %73 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #8
  %74 = load i32, ptr %46, align 8, !tbaa !22
  invoke void @_ZN7Array2DIfEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %73, i32 noundef %74, i32 noundef 1)
          to label %75 unwind label %108

75:                                               ; preds = %71
  %76 = getelementptr inbounds i8, ptr %0, i64 248
  store ptr %73, ptr %76, align 8, !tbaa !31
  %77 = load i32, ptr %6, align 4, !tbaa !15
  %78 = icmp sgt i32 %77, 0
  br i1 %78, label %.preheader.lr.ph, label %._crit_edge37

.preheader.lr.ph:                                 ; preds = %75
  %79 = getelementptr inbounds i8, ptr %0, i64 220
  %80 = load i32, ptr %4, align 8, !tbaa !5
  %81 = icmp sgt i32 %80, 0
  br i1 %81, label %.preheader, label %._crit_edge37

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge35
  %82 = phi i32 [ %110, %._crit_edge35 ], [ %77, %.preheader.lr.ph ]
  %83 = phi i32 [ %111, %._crit_edge35 ], [ %80, %.preheader.lr.ph ]
  %.02236 = phi i32 [ %112, %._crit_edge35 ], [ 0, %.preheader.lr.ph ]
  %84 = icmp sgt i32 %83, 0
  br i1 %84, label %.lr.ph34, label %._crit_edge35

._crit_edge37:                                    ; preds = %._crit_edge35, %.preheader.lr.ph, %75
  %85 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %86 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.9)
  %87 = load i32, ptr %4, align 8, !tbaa !5
  %88 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.10, i32 noundef %87)
  %89 = load i32, ptr %6, align 4, !tbaa !15
  %90 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.11, i32 noundef %89)
  %91 = load i32, ptr %4, align 8, !tbaa !5
  %92 = load i32, ptr %6, align 4, !tbaa !15
  %93 = mul nsw i32 %92, %91
  %94 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.12, i32 noundef %93)
  %95 = load i32, ptr %46, align 8, !tbaa !22
  %96 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.13, i32 noundef %95)
  %97 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %98 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.14)
  %99 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %100 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #8
  %101 = load i32, ptr %4, align 8, !tbaa !5
  %102 = add nsw i32 %101, -1
  %103 = load i32, ptr %6, align 4, !tbaa !15
  %104 = add nsw i32 %103, -1
  %105 = mul nsw i32 %104, %102
  invoke void @_ZN7Array2DIiEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %100, i32 noundef %105, i32 noundef 4)
          to label %132 unwind label %186

106:                                              ; preds = %._crit_edge32
  %107 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %47, i64 noundef 40) #9
  br label %192

108:                                              ; preds = %71
  %109 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %73, i64 noundef 40) #9
  br label %192

._crit_edge35.loopexit:                           ; preds = %.lr.ph34
  %.pre40 = load i32, ptr %6, align 4, !tbaa !15
  br label %._crit_edge35

._crit_edge35:                                    ; preds = %._crit_edge35.loopexit, %.preheader
  %110 = phi i32 [ %.pre40, %._crit_edge35.loopexit ], [ %82, %.preheader ]
  %111 = phi i32 [ %130, %._crit_edge35.loopexit ], [ %83, %.preheader ]
  %112 = add nuw nsw i32 %.02236, 1
  %113 = icmp slt i32 %112, %110
  br i1 %113, label %.preheader, label %._crit_edge37, !llvm.loop !32

.lr.ph34:                                         ; preds = %.preheader, %.lr.ph34
  %114 = phi i32 [ %130, %.lr.ph34 ], [ %83, %.preheader ]
  %.033 = phi i32 [ %129, %.lr.ph34 ], [ 0, %.preheader ]
  %115 = mul nsw i32 %114, %.02236
  %116 = add nsw i32 %115, %.033
  store i32 %116, ptr %79, align 4, !tbaa !33
  %117 = load ptr, ptr %9, align 8, !tbaa !16
  %118 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEii(ptr noundef nonnull align 8 dereferenceable(40) %117, i32 noundef %.033, i32 noundef %.02236)
  %119 = load float, ptr %118, align 4, !tbaa !21
  %120 = load ptr, ptr %72, align 8, !tbaa !30
  %121 = load i32, ptr %79, align 4, !tbaa !33
  %122 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %120, i32 noundef %121)
  store float %119, ptr %122, align 4, !tbaa !21
  %123 = load ptr, ptr %14, align 8, !tbaa !17
  %124 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEii(ptr noundef nonnull align 8 dereferenceable(40) %123, i32 noundef %.033, i32 noundef %.02236)
  %125 = load float, ptr %124, align 4, !tbaa !21
  %126 = load ptr, ptr %76, align 8, !tbaa !31
  %127 = load i32, ptr %79, align 4, !tbaa !33
  %128 = tail call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Array2DIfEclEi(ptr noundef nonnull align 8 dereferenceable(40) %126, i32 noundef %127)
  store float %125, ptr %128, align 4, !tbaa !21
  %129 = add nuw nsw i32 %.033, 1
  %130 = load i32, ptr %4, align 8, !tbaa !5
  %131 = icmp slt i32 %129, %130
  br i1 %131, label %.lr.ph34, label %._crit_edge35.loopexit, !llvm.loop !34

132:                                              ; preds = %._crit_edge37
  %133 = getelementptr inbounds i8, ptr %0, i64 232
  store ptr %100, ptr %133, align 8, !tbaa !35
  %134 = tail call noalias noundef nonnull dereferenceable(40) ptr @_Znwm(i64 noundef 40) #8
  %135 = load i32, ptr %4, align 8, !tbaa !5
  %136 = shl i32 %135, 1
  %137 = add i32 %136, -2
  %138 = load i32, ptr %6, align 4, !tbaa !15
  %139 = add nsw i32 %138, -1
  %140 = mul nsw i32 %137, %139
  invoke void @_ZN7Array2DIiEC2Eii(ptr noundef nonnull align 8 dereferenceable(40) %134, i32 noundef %140, i32 noundef 3)
          to label %141 unwind label %188

141:                                              ; preds = %132
  %142 = getelementptr inbounds i8, ptr %0, i64 224
  store ptr %134, ptr %142, align 8, !tbaa !36
  %143 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.15)
  tail call void @_ZN6Grid2D9gridGen2D18generate_tria_gridEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %144 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %145 = getelementptr inbounds i8, ptr %0, i64 212
  %146 = load i32, ptr %145, align 4, !tbaa !37
  %147 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.16, i32 noundef %146)
  %148 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %149 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.17)
  %150 = getelementptr inbounds i8, ptr %0, i64 32
  tail call void @_ZN6Grid2D9gridGen2D18write_tecplot_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(32) %150)
  %151 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.18)
  %152 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.19)
  %153 = getelementptr inbounds i8, ptr %0, i64 96
  tail call void @_ZN6Grid2D9gridGen2D15write_grid_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(32) %153)
  %154 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.20)
  %155 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %156 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.21)
  tail call void @_ZN6Grid2D9gridGen2D18generate_quad_gridEv(ptr noundef nonnull align 8 dereferenceable(276) %0)
  %157 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %158 = getelementptr inbounds i8, ptr %0, i64 216
  %159 = load i32, ptr %158, align 8, !tbaa !38
  %160 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.22, i32 noundef %159)
  %161 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %162 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.23)
  %163 = getelementptr inbounds i8, ptr %0, i64 64
  tail call void @_ZN6Grid2D9gridGen2D18write_tecplot_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(32) %163)
  %164 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.24)
  %165 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.25)
  %166 = getelementptr inbounds i8, ptr %0, i64 128
  tail call void @_ZN6Grid2D9gridGen2D15write_grid_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(276) %0, ptr noundef nonnull align 8 dereferenceable(32) %166)
  %167 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.26)
  %168 = tail call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.27)
  call void @llvm.lifetime.start.p0(i64 512, ptr nonnull %2) #10
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2)
  %169 = getelementptr inbounds i8, ptr %0, i64 160
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE4openERKNSt7__cxx1112basic_stringIcS1_SaIcEEESt13_Ios_Openmode(ptr noundef nonnull align 8 dereferenceable(248) %2, ptr noundef nonnull align 8 dereferenceable(32) %169, i32 noundef 16)
          to label %170 unwind label %190

170:                                              ; preds = %141
  %171 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.28)
          to label %172 unwind label %190

172:                                              ; preds = %170
  %173 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.29)
          to label %174 unwind label %190

174:                                              ; preds = %172
  %175 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.30)
          to label %176 unwind label %190

176:                                              ; preds = %174
  %177 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.31)
          to label %178 unwind label %190

178:                                              ; preds = %176
  %179 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.32)
          to label %180 unwind label %190

180:                                              ; preds = %178
  %181 = invoke noundef nonnull align 8 dereferenceable(8) ptr @_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc(ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull @.str.33)
          to label %182 unwind label %190

182:                                              ; preds = %180
  invoke void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEE5closeEv(ptr noundef nonnull align 8 dereferenceable(248) %2)
          to label %183 unwind label %190

183:                                              ; preds = %182
  %184 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.8)
  %185 = call i32 (ptr, ...) @printf(ptr noundef nonnull dereferenceable(1) @.str.34)
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #10
  ret void

186:                                              ; preds = %._crit_edge37
  %187 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %100, i64 noundef 40) #9
  br label %192

188:                                              ; preds = %132
  %189 = landingpad { ptr, i32 }
          cleanup
  tail call void @_ZdlPvm(ptr noundef nonnull %134, i64 noundef 40) #9
  br label %192

190:                                              ; preds = %182, %180, %178, %176, %174, %172, %170, %141
  %191 = landingpad { ptr, i32 }
          cleanup
  call void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEED1Ev(ptr noundef nonnull align 8 dereferenceable(248) %2) #10
  call void @llvm.lifetime.end.p0(i64 512, ptr nonnull %2) #10
  br label %192

192:                                              ; preds = %190, %188, %186, %108, %106, %50, %48
  %.pn = phi { ptr, i32 } [ %191, %190 ], [ %189, %188 ], [ %187, %186 ], [ %109, %108 ], [ %107, %106 ], [ %51, %50 ], [ %49, %48 ]
  resume { ptr, i32 } %.pn
}

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

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

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare float @llvm.fmuladd.f32(float, float, float) #5

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Grid2D9gridGen2D18generate_tria_gridEv(ptr noundef nonnull align 8 dereferenceable(276)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Grid2D9gridGen2D18write_tecplot_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(276), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Grid2D9gridGen2D15write_grid_fileERKNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE(ptr noundef nonnull align 8 dereferenceable(276), ptr noundef nonnull align 8 dereferenceable(32)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN6Grid2D9gridGen2D18generate_quad_gridEv(ptr noundef nonnull align 8 dereferenceable(276)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
declare void @_ZNSt14basic_ofstreamIcSt11char_traitsIcEEC1Ev(ptr noundef nonnull align 8 dereferenceable(248)) unnamed_addr #3 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 #3 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 #6

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

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

attributes #0 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { 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 = { 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 #5 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #8 = { builtin allocsize(0) }
attributes #9 = { builtin nounwind }
attributes #10 = { 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, !10, i64 24}
!6 = !{!"_ZTSN6Grid2D9gridGen2DE", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !7, i64 16, !7, i64 20, !10, i64 24, !10, i64 28, !11, i64 32, !11, i64 64, !11, i64 96, !11, i64 128, !11, i64 160, !13, i64 192, !13, i64 200, !10, i64 208, !10, i64 212, !10, i64 216, !10, i64 220, !13, i64 224, !13, i64 232, !13, i64 240, !13, i64 248, !7, i64 256, !7, i64 260, !10, i64 264, !10, i64 268, !10, i64 272}
!7 = !{!"float", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEEE", !12, i64 0, !14, i64 8, !8, i64 16}
!12 = !{!"_ZTSNSt7__cxx1112basic_stringIcSt11char_traitsIcESaIcEE12_Alloc_hiderE", !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!"long", !8, i64 0}
!15 = !{!6, !10, i64 28}
!16 = !{!6, !13, i64 192}
!17 = !{!6, !13, i64 200}
!18 = !{!6, !7, i64 12}
!19 = !{!6, !7, i64 8}
!20 = !{!10, !10, i64 0}
!21 = !{!7, !7, i64 0}
!22 = !{!6, !10, i64 208}
!23 = distinct !{!23, !24, !25}
!24 = !{!"llvm.loop.mustprogress"}
!25 = !{!"llvm.loop.unswitch.partial.disable"}
!26 = !{!6, !7, i64 0}
!27 = !{!6, !7, i64 256}
!28 = !{!6, !7, i64 260}
!29 = distinct !{!29, !24}
!30 = !{!6, !13, i64 240}
!31 = !{!6, !13, i64 248}
!32 = distinct !{!32, !24, !25}
!33 = !{!6, !10, i64 220}
!34 = distinct !{!34, !24}
!35 = !{!6, !13, i64 232}
!36 = !{!6, !13, i64 224}
!37 = !{!6, !10, i64 212}
!38 = !{!6, !10, i64 216}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass,VectorCombinePass