; LLVM IR from aparis69/Desertscapes-Simulation :: Code/Source/desert.ll (ZN12DuneSedimentC2Ev)

; 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.Box2D = type { %struct.Vector2, %struct.Vector2 }
%struct.Vector2 = type { float, float }
%class.ScalarField2D = type { %class.Box2D, i32, i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }
%class.DuneSediment = type { float, float, float, float, i8, i8, %class.ScalarField2D, %class.ScalarField2D, %class.ScalarField2D, %class.Box2D, i32, i32, float, float, %struct.Vector2 }

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

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

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12DuneSedimentC2Ev(ptr noundef nonnull align 8 dereferenceable(208) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca %class.Box2D, align 4
  %6 = alloca %struct.Vector2, align 4
  %7 = alloca %struct.Vector2, align 4
  %8 = alloca %class.ScalarField2D, align 8
  %9 = alloca %class.ScalarField2D, align 8
  %10 = alloca %class.ScalarField2D, align 8
  %11 = alloca %struct.Vector2, align 4
  %12 = alloca %struct.Vector2, align 4
  %13 = alloca %struct.Vector2, align 4
  %14 = alloca %struct.Vector2, align 4
  %15 = alloca %struct.Vector2, align 4
  %16 = alloca %struct.Vector2, align 4
  %17 = alloca %class.Box2D, align 4
  %18 = alloca %struct.Vector2, align 4
  %19 = alloca %struct.Vector2, align 4
  %20 = alloca %struct.Vector2, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %21 = load ptr, ptr %2, align 8
  %22 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 0
  store float 0x3FE3333340000000, ptr %22, align 8, !tbaa !9
  %23 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 1
  store float 0x3FB47AE140000000, ptr %23, align 4, !tbaa !21
  %24 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 2
  store float 0x3FD0A3D700000000, ptr %24, align 8, !tbaa !22
  %25 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 3
  store float 2.500000e+00, ptr %25, align 4, !tbaa !23
  %26 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 4
  store i8 0, ptr %26, align 8, !tbaa !24
  %27 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 5
  store i8 0, ptr %27, align 1, !tbaa !25
  %28 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 6
  call void @_ZN13ScalarField2DC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28)
  %29 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 7
  invoke void @_ZN13ScalarField2DC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %29)
          to label %30 unwind label %123

30:                                               ; preds = %1
  %31 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 8
  invoke void @_ZN13ScalarField2DC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31)
          to label %32 unwind label %127

32:                                               ; preds = %30
  %33 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 9
  invoke void @_ZN5Box2DC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %33)
          to label %34 unwind label %131

34:                                               ; preds = %32
  %35 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 14
  invoke void @_ZN7Vector2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %35)
          to label %36 unwind label %131

36:                                               ; preds = %34
  %37 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 11
  store i32 256, ptr %37, align 4, !tbaa !26
  %38 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 10
  store i32 256, ptr %38, align 8, !tbaa !27
  call void @llvm.lifetime.start.p0(i64 16, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %6) #8
  invoke void @_ZN7Vector2C2Ef(ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 0.000000e+00)
          to label %39 unwind label %135

39:                                               ; preds = %36
  invoke void @_ZN5Box2DC2ERK7Vector2f(ptr noundef nonnull align 4 dereferenceable(16) %5, ptr noundef nonnull align 4 dereferenceable(8) %6, float noundef 1.000000e+00)
          to label %40 unwind label %135

40:                                               ; preds = %39
  %41 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 9
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %41, ptr align 4 %5, i64 16, i1 false), !tbaa.struct !28
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %7) #8
  invoke void @_ZN7Vector2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %7, float noundef 1.000000e+00, float noundef 0.000000e+00)
          to label %42 unwind label %139

42:                                               ; preds = %40
  %43 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 14
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %43, ptr align 4 %7, i64 8, i1 false), !tbaa.struct !30
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %8) #8
  %44 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 10
  %45 = load i32, ptr %44, align 8, !tbaa !27
  %46 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 11
  %47 = load i32, ptr %46, align 4, !tbaa !26
  %48 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 9
  invoke void @_ZN13ScalarField2DC2EiiRK5Box2Df(ptr noundef nonnull align 8 dereferenceable(48) %8, i32 noundef %45, i32 noundef %47, ptr noundef nonnull align 4 dereferenceable(16) %48, float noundef 0.000000e+00)
          to label %49 unwind label %143

49:                                               ; preds = %42
  %50 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 6
  %51 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN13ScalarField2DaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %50, ptr noundef nonnull align 8 dereferenceable(48) %8)
          to label %52 unwind label %147

52:                                               ; preds = %49
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %9) #8
  %53 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 10
  %54 = load i32, ptr %53, align 8, !tbaa !27
  %55 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 11
  %56 = load i32, ptr %55, align 4, !tbaa !26
  %57 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 9
  invoke void @_ZN13ScalarField2DC2EiiRK5Box2Df(ptr noundef nonnull align 8 dereferenceable(48) %9, i32 noundef %54, i32 noundef %56, ptr noundef nonnull align 4 dereferenceable(16) %57, float noundef 0.000000e+00)
          to label %58 unwind label %152

58:                                               ; preds = %52
  %59 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 8
  %60 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN13ScalarField2DaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %59, ptr noundef nonnull align 8 dereferenceable(48) %9)
          to label %61 unwind label %156

61:                                               ; preds = %58
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr %10) #8
  %62 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 10
  %63 = load i32, ptr %62, align 8, !tbaa !27
  %64 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 11
  %65 = load i32, ptr %64, align 4, !tbaa !26
  %66 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 9
  invoke void @_ZN13ScalarField2DC2EiiRK5Box2Df(ptr noundef nonnull align 8 dereferenceable(48) %10, i32 noundef %63, i32 noundef %65, ptr noundef nonnull align 4 dereferenceable(16) %66, float noundef 0.000000e+00)
          to label %67 unwind label %161

67:                                               ; preds = %61
  %68 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 7
  %69 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN13ScalarField2DaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %68, ptr noundef nonnull align 8 dereferenceable(48) %10)
          to label %70 unwind label %165

70:                                               ; preds = %67
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #8
  %71 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 12
  store float 0x3FB99999A0000000, ptr %71, align 8, !tbaa !31
  call void @llvm.lifetime.start.p0(i64 8, ptr %11) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #8
  %72 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 9
  %73 = invoke <2 x float> @_ZNK5Box2D8TopRightEv(ptr noundef nonnull align 4 dereferenceable(16) %72)
          to label %74 unwind label %170

74:                                               ; preds = %70
  store <2 x float> %73, ptr %12, align 4
  %75 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector2ixEi(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef 0)
          to label %76 unwind label %170

76:                                               ; preds = %74
  %77 = load float, ptr %75, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #8
  %78 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 9
  %79 = invoke <2 x float> @_ZNK5Box2D10BottomLeftEv(ptr noundef nonnull align 4 dereferenceable(16) %78)
          to label %80 unwind label %174

80:                                               ; preds = %76
  store <2 x float> %79, ptr %13, align 4
  %81 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector2ixEi(ptr noundef nonnull align 4 dereferenceable(8) %13, i32 noundef 0)
          to label %82 unwind label %174

82:                                               ; preds = %80
  %83 = load float, ptr %81, align 4, !tbaa !29
  %84 = fsub float %77, %83
  %85 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 10
  %86 = load i32, ptr %85, align 8, !tbaa !27
  %87 = sub nsw i32 %86, 1
  %88 = sitofp i32 %87 to float
  %89 = fdiv float %84, %88
  call void @llvm.lifetime.start.p0(i64 8, ptr %14) #8
  %90 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 9
  %91 = invoke <2 x float> @_ZNK5Box2D8TopRightEv(ptr noundef nonnull align 4 dereferenceable(16) %90)
          to label %92 unwind label %178

92:                                               ; preds = %82
  store <2 x float> %91, ptr %14, align 4
  %93 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector2ixEi(ptr noundef nonnull align 4 dereferenceable(8) %14, i32 noundef 1)
          to label %94 unwind label %178

94:                                               ; preds = %92
  %95 = load float, ptr %93, align 4, !tbaa !29
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #8
  %96 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 9
  %97 = invoke <2 x float> @_ZNK5Box2D10BottomLeftEv(ptr noundef nonnull align 4 dereferenceable(16) %96)
          to label %98 unwind label %182

98:                                               ; preds = %94
  store <2 x float> %97, ptr %15, align 4
  %99 = invoke noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector2ixEi(ptr noundef nonnull align 4 dereferenceable(8) %15, i32 noundef 1)
          to label %100 unwind label %182

100:                                              ; preds = %98
  %101 = load float, ptr %99, align 4, !tbaa !29
  %102 = fsub float %95, %101
  %103 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 11
  %104 = load i32, ptr %103, align 4, !tbaa !26
  %105 = sub nsw i32 %104, 1
  %106 = sitofp i32 %105 to float
  %107 = fdiv float %102, %106
  invoke void @_ZN7Vector2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %11, float noundef %89, float noundef %107)
          to label %108 unwind label %182

108:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #8
  %109 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 9
  %110 = invoke <2 x float> @_ZNK5Box2D10BottomLeftEv(ptr noundef nonnull align 4 dereferenceable(16) %109)
          to label %111 unwind label %189

111:                                              ; preds = %108
  store <2 x float> %110, ptr %18, align 4
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #8
  %112 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 9
  %113 = invoke <2 x float> @_ZNK5Box2D10BottomLeftEv(ptr noundef nonnull align 4 dereferenceable(16) %112)
          to label %114 unwind label %193

114:                                              ; preds = %111
  store <2 x float> %113, ptr %20, align 4
  %115 = invoke <2 x float> @_ZNK7Vector2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %20, ptr noundef nonnull align 4 dereferenceable(8) %11)
          to label %116 unwind label %193

116:                                              ; preds = %114
  store <2 x float> %115, ptr %19, align 4
  invoke void @_ZN5Box2DC2ERK7Vector2S2_(ptr noundef nonnull align 4 dereferenceable(16) %17, ptr noundef nonnull align 4 dereferenceable(8) %18, ptr noundef nonnull align 4 dereferenceable(8) %19)
          to label %117 unwind label %193

117:                                              ; preds = %116
  %118 = invoke <2 x float> @_ZNK5Box2D4SizeEv(ptr noundef nonnull align 4 dereferenceable(16) %17)
          to label %119 unwind label %193

119:                                              ; preds = %117
  store <2 x float> %118, ptr %16, align 4
  %120 = getelementptr inbounds %struct.Vector2, ptr %16, i32 0, i32 0
  %121 = load float, ptr %120, align 4, !tbaa !32
  %122 = getelementptr inbounds %class.DuneSediment, ptr %21, i32 0, i32 13
  store float %121, ptr %122, align 4, !tbaa !33
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  ret void

123:                                              ; preds = %1
  %124 = landingpad { ptr, i32 }
          cleanup
  %125 = extractvalue { ptr, i32 } %124, 0
  store ptr %125, ptr %3, align 8
  %126 = extractvalue { ptr, i32 } %124, 1
  store i32 %126, ptr %4, align 4
  br label %201

127:                                              ; preds = %30
  %128 = landingpad { ptr, i32 }
          cleanup
  %129 = extractvalue { ptr, i32 } %128, 0
  store ptr %129, ptr %3, align 8
  %130 = extractvalue { ptr, i32 } %128, 1
  store i32 %130, ptr %4, align 4
  br label %200

131:                                              ; preds = %34, %32
  %132 = landingpad { ptr, i32 }
          cleanup
  %133 = extractvalue { ptr, i32 } %132, 0
  store ptr %133, ptr %3, align 8
  %134 = extractvalue { ptr, i32 } %132, 1
  store i32 %134, ptr %4, align 4
  br label %199

135:                                              ; preds = %39, %36
  %136 = landingpad { ptr, i32 }
          cleanup
  %137 = extractvalue { ptr, i32 } %136, 0
  store ptr %137, ptr %3, align 8
  %138 = extractvalue { ptr, i32 } %136, 1
  store i32 %138, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %5) #8
  br label %199

139:                                              ; preds = %40
  %140 = landingpad { ptr, i32 }
          cleanup
  %141 = extractvalue { ptr, i32 } %140, 0
  store ptr %141, ptr %3, align 8
  %142 = extractvalue { ptr, i32 } %140, 1
  store i32 %142, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #8
  br label %199

143:                                              ; preds = %42
  %144 = landingpad { ptr, i32 }
          cleanup
  %145 = extractvalue { ptr, i32 } %144, 0
  store ptr %145, ptr %3, align 8
  %146 = extractvalue { ptr, i32 } %144, 1
  store i32 %146, ptr %4, align 4
  br label %151

147:                                              ; preds = %49
  %148 = landingpad { ptr, i32 }
          cleanup
  %149 = extractvalue { ptr, i32 } %148, 0
  store ptr %149, ptr %3, align 8
  %150 = extractvalue { ptr, i32 } %148, 1
  store i32 %150, ptr %4, align 4
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %8) #8
  br label %151

151:                                              ; preds = %147, %143
  call void @llvm.lifetime.end.p0(i64 48, ptr %8) #8
  br label %199

152:                                              ; preds = %52
  %153 = landingpad { ptr, i32 }
          cleanup
  %154 = extractvalue { ptr, i32 } %153, 0
  store ptr %154, ptr %3, align 8
  %155 = extractvalue { ptr, i32 } %153, 1
  store i32 %155, ptr %4, align 4
  br label %160

156:                                              ; preds = %58
  %157 = landingpad { ptr, i32 }
          cleanup
  %158 = extractvalue { ptr, i32 } %157, 0
  store ptr %158, ptr %3, align 8
  %159 = extractvalue { ptr, i32 } %157, 1
  store i32 %159, ptr %4, align 4
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %9) #8
  br label %160

160:                                              ; preds = %156, %152
  call void @llvm.lifetime.end.p0(i64 48, ptr %9) #8
  br label %199

161:                                              ; preds = %61
  %162 = landingpad { ptr, i32 }
          cleanup
  %163 = extractvalue { ptr, i32 } %162, 0
  store ptr %163, ptr %3, align 8
  %164 = extractvalue { ptr, i32 } %162, 1
  store i32 %164, ptr %4, align 4
  br label %169

165:                                              ; preds = %67
  %166 = landingpad { ptr, i32 }
          cleanup
  %167 = extractvalue { ptr, i32 } %166, 0
  store ptr %167, ptr %3, align 8
  %168 = extractvalue { ptr, i32 } %166, 1
  store i32 %168, ptr %4, align 4
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %10) #8
  br label %169

169:                                              ; preds = %165, %161
  call void @llvm.lifetime.end.p0(i64 48, ptr %10) #8
  br label %199

170:                                              ; preds = %74, %70
  %171 = landingpad { ptr, i32 }
          cleanup
  %172 = extractvalue { ptr, i32 } %171, 0
  store ptr %172, ptr %3, align 8
  %173 = extractvalue { ptr, i32 } %171, 1
  store i32 %173, ptr %4, align 4
  br label %188

174:                                              ; preds = %80, %76
  %175 = landingpad { ptr, i32 }
          cleanup
  %176 = extractvalue { ptr, i32 } %175, 0
  store ptr %176, ptr %3, align 8
  %177 = extractvalue { ptr, i32 } %175, 1
  store i32 %177, ptr %4, align 4
  br label %187

178:                                              ; preds = %92, %82
  %179 = landingpad { ptr, i32 }
          cleanup
  %180 = extractvalue { ptr, i32 } %179, 0
  store ptr %180, ptr %3, align 8
  %181 = extractvalue { ptr, i32 } %179, 1
  store i32 %181, ptr %4, align 4
  br label %186

182:                                              ; preds = %100, %98, %94
  %183 = landingpad { ptr, i32 }
          cleanup
  %184 = extractvalue { ptr, i32 } %183, 0
  store ptr %184, ptr %3, align 8
  %185 = extractvalue { ptr, i32 } %183, 1
  store i32 %185, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #8
  br label %186

186:                                              ; preds = %182, %178
  call void @llvm.lifetime.end.p0(i64 8, ptr %14) #8
  br label %187

187:                                              ; preds = %186, %174
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #8
  br label %188

188:                                              ; preds = %187, %170
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #8
  br label %198

189:                                              ; preds = %108
  %190 = landingpad { ptr, i32 }
          cleanup
  %191 = extractvalue { ptr, i32 } %190, 0
  store ptr %191, ptr %3, align 8
  %192 = extractvalue { ptr, i32 } %190, 1
  store i32 %192, ptr %4, align 4
  br label %197

193:                                              ; preds = %117, %116, %114, %111
  %194 = landingpad { ptr, i32 }
          cleanup
  %195 = extractvalue { ptr, i32 } %194, 0
  store ptr %195, ptr %3, align 8
  %196 = extractvalue { ptr, i32 } %194, 1
  store i32 %196, ptr %4, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #8
  br label %197

197:                                              ; preds = %193, %189
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr %17) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #8
  br label %198

198:                                              ; preds = %197, %188
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #8
  br label %199

199:                                              ; preds = %198, %169, %160, %151, %139, %135, %131
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %31) #8
  br label %200

200:                                              ; preds = %199, %127
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %29) #8
  br label %201

201:                                              ; preds = %200, %123
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %28) #8
  br label %202

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

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN13ScalarField2DC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Box2DC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Vector2C2Ef(ptr noundef nonnull align 4 dereferenceable(8), float noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Box2DC2ERK7Vector2f(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8), float noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Vector2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN13ScalarField2DC2EiiRK5Box2Df(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(16), float noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN13ScalarField2DaSERKS_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZNK5Box2D8TopRightEv(ptr noundef nonnull align 4 dereferenceable(16)) #7 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZNK5Box2D10BottomLeftEv(ptr noundef nonnull align 4 dereferenceable(16)) #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK7Vector2plERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Box2DC2ERK7Vector2S2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZNK5Box2D4SizeEv(ptr noundef nonnull align 4 dereferenceable(16)) #5 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 0}
!10 = !{!"_ZTS12DuneSediment", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !12, i64 16, !12, i64 17, !13, i64 24, !13, i64 72, !13, i64 120, !14, i64 168, !16, i64 184, !16, i64 188, !11, i64 192, !11, i64 196, !15, i64 200}
!11 = !{!"float", !7, i64 0}
!12 = !{!"bool", !7, i64 0}
!13 = !{!"_ZTS13ScalarField2D", !14, i64 0, !16, i64 16, !16, i64 20, !17, i64 24}
!14 = !{!"_ZTS5Box2D", !15, i64 0, !15, i64 8}
!15 = !{!"_ZTS7Vector2", !11, i64 0, !11, i64 4}
!16 = !{!"int", !7, i64 0}
!17 = !{!"_ZTSSt6vectorIfSaIfEE", !18, i64 0}
!18 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !20, i64 0}
!20 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !6, i64 0, !6, i64 8, !6, i64 16}
!21 = !{!10, !11, i64 4}
!22 = !{!10, !11, i64 8}
!23 = !{!10, !11, i64 12}
!24 = !{!10, !12, i64 16}
!25 = !{!10, !12, i64 17}
!26 = !{!10, !16, i64 188}
!27 = !{!10, !16, i64 184}
!28 = !{i64 0, i64 4, !29, i64 4, i64 4, !29, i64 8, i64 4, !29, i64 12, i64 4, !29}
!29 = !{!11, !11, i64 0}
!30 = !{i64 0, i64 4, !29, i64 4, i64 4, !29}
!31 = !{!10, !11, i64 192}
!32 = !{!15, !11, i64 0}
!33 = !{!10, !11, i64 196}


; 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.Box2D = type { %struct.Vector2, %struct.Vector2 }
%struct.Vector2 = type { float, float }
%class.ScalarField2D = type { %class.Box2D, i32, i32, %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl" = type { %"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float, std::allocator<float>>::_Vector_impl_data" = type { ptr, ptr, ptr }

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #0

; Function Attrs: mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite)
declare void @llvm.memcpy.p0.p0.i64(ptr noalias nocapture writeonly, ptr noalias nocapture readonly, i64, i1 immarg) #1

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN12DuneSedimentC2Ev(ptr noundef nonnull align 8 dereferenceable(208) %0) unnamed_addr #2 align 2 personality ptr @__gxx_personality_v0 {
  %2 = alloca %class.Box2D, align 4
  %3 = alloca %struct.Vector2, align 4
  %4 = alloca %struct.Vector2, align 8
  %5 = alloca %class.ScalarField2D, align 8
  %6 = alloca %class.ScalarField2D, align 8
  %7 = alloca %class.ScalarField2D, align 8
  %8 = alloca %struct.Vector2, align 4
  %9 = alloca %struct.Vector2, align 8
  %10 = alloca %struct.Vector2, align 8
  %11 = alloca %struct.Vector2, align 8
  %12 = alloca %struct.Vector2, align 8
  %13 = alloca %class.Box2D, align 4
  %14 = alloca %struct.Vector2, align 8
  %15 = alloca %struct.Vector2, align 8
  %16 = alloca %struct.Vector2, align 8
  store <4 x float> <float 0x3FE3333340000000, float 0x3FB47AE140000000, float 0x3FD0A3D700000000, float 2.500000e+00>, ptr %0, align 8, !tbaa !5
  %17 = getelementptr inbounds i8, ptr %0, i64 16
  store i8 0, ptr %17, align 8, !tbaa !9
  %18 = getelementptr inbounds i8, ptr %0, i64 17
  store i8 0, ptr %18, align 1, !tbaa !21
  %19 = getelementptr inbounds i8, ptr %0, i64 24
  tail call void @_ZN13ScalarField2DC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19)
  %20 = getelementptr inbounds i8, ptr %0, i64 72
  invoke void @_ZN13ScalarField2DC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20)
          to label %21 unwind label %76

21:                                               ; preds = %1
  %22 = getelementptr inbounds i8, ptr %0, i64 120
  invoke void @_ZN13ScalarField2DC2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22)
          to label %23 unwind label %78

23:                                               ; preds = %21
  %24 = getelementptr inbounds i8, ptr %0, i64 168
  invoke void @_ZN5Box2DC2Ev(ptr noundef nonnull align 4 dereferenceable(16) %24)
          to label %25 unwind label %80

25:                                               ; preds = %23
  %26 = getelementptr inbounds i8, ptr %0, i64 200
  tail call void @_ZN7Vector2C2Ev(ptr noundef nonnull align 4 dereferenceable(8) %26)
  %27 = getelementptr inbounds i8, ptr %0, i64 188
  store i32 256, ptr %27, align 4, !tbaa !22
  %28 = getelementptr inbounds i8, ptr %0, i64 184
  store i32 256, ptr %28, align 8, !tbaa !23
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #8
  call void @_ZN7Vector2C2Ef(ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 0.000000e+00)
  invoke void @_ZN5Box2DC2ERK7Vector2f(ptr noundef nonnull align 4 dereferenceable(16) %2, ptr noundef nonnull align 4 dereferenceable(8) %3, float noundef 1.000000e+00)
          to label %29 unwind label %82

29:                                               ; preds = %25
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(16) %24, ptr noundef nonnull align 4 dereferenceable(16) %2, i64 16, i1 false), !tbaa.struct !24
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %4) #8
  call void @_ZN7Vector2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %4, float noundef 1.000000e+00, float noundef 0.000000e+00)
  %30 = load i64, ptr %4, align 8
  store i64 %30, ptr %26, align 8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %4) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %5) #8
  %31 = load i32, ptr %28, align 8, !tbaa !23
  %32 = load i32, ptr %27, align 4, !tbaa !22
  invoke void @_ZN13ScalarField2DC2EiiRK5Box2Df(ptr noundef nonnull align 8 dereferenceable(48) %5, i32 noundef %31, i32 noundef %32, ptr noundef nonnull align 4 dereferenceable(16) %24, float noundef 0.000000e+00)
          to label %33 unwind label %84

33:                                               ; preds = %29
  %34 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN13ScalarField2DaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %19, ptr noundef nonnull align 8 dereferenceable(48) %5)
          to label %35 unwind label %86

35:                                               ; preds = %33
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %6) #8
  %36 = load i32, ptr %28, align 8, !tbaa !23
  %37 = load i32, ptr %27, align 4, !tbaa !22
  invoke void @_ZN13ScalarField2DC2EiiRK5Box2Df(ptr noundef nonnull align 8 dereferenceable(48) %6, i32 noundef %36, i32 noundef %37, ptr noundef nonnull align 4 dereferenceable(16) %24, float noundef 0.000000e+00)
          to label %38 unwind label %89

38:                                               ; preds = %35
  %39 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN13ScalarField2DaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %22, ptr noundef nonnull align 8 dereferenceable(48) %6)
          to label %40 unwind label %91

40:                                               ; preds = %38
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #8
  call void @llvm.lifetime.start.p0(i64 48, ptr nonnull %7) #8
  %41 = load i32, ptr %28, align 8, !tbaa !23
  %42 = load i32, ptr %27, align 4, !tbaa !22
  invoke void @_ZN13ScalarField2DC2EiiRK5Box2Df(ptr noundef nonnull align 8 dereferenceable(48) %7, i32 noundef %41, i32 noundef %42, ptr noundef nonnull align 4 dereferenceable(16) %24, float noundef 0.000000e+00)
          to label %43 unwind label %94

43:                                               ; preds = %40
  %44 = invoke noundef nonnull align 8 dereferenceable(48) ptr @_ZN13ScalarField2DaSERKS_(ptr noundef nonnull align 8 dereferenceable(48) %20, ptr noundef nonnull align 8 dereferenceable(48) %7)
          to label %45 unwind label %96

45:                                               ; preds = %43
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  %46 = getelementptr inbounds i8, ptr %0, i64 192
  store float 0x3FB99999A0000000, ptr %46, align 8, !tbaa !25
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %9) #8
  %47 = call <2 x float> @_ZNK5Box2D8TopRightEv(ptr noundef nonnull align 4 dereferenceable(16) %24)
  store <2 x float> %47, ptr %9, align 8
  %48 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector2ixEi(ptr noundef nonnull align 4 dereferenceable(8) %9, i32 noundef 0)
  %49 = load float, ptr %48, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #8
  %50 = call <2 x float> @_ZNK5Box2D10BottomLeftEv(ptr noundef nonnull align 4 dereferenceable(16) %24)
  store <2 x float> %50, ptr %10, align 8
  %51 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector2ixEi(ptr noundef nonnull align 4 dereferenceable(8) %10, i32 noundef 0)
  %52 = load float, ptr %51, align 4, !tbaa !5
  %53 = fsub float %49, %52
  %54 = load i32, ptr %28, align 8, !tbaa !23
  %55 = add nsw i32 %54, -1
  %56 = sitofp i32 %55 to float
  %57 = fdiv float %53, %56
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #8
  %58 = call <2 x float> @_ZNK5Box2D8TopRightEv(ptr noundef nonnull align 4 dereferenceable(16) %24)
  store <2 x float> %58, ptr %11, align 8
  %59 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector2ixEi(ptr noundef nonnull align 4 dereferenceable(8) %11, i32 noundef 1)
  %60 = load float, ptr %59, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #8
  %61 = call <2 x float> @_ZNK5Box2D10BottomLeftEv(ptr noundef nonnull align 4 dereferenceable(16) %24)
  store <2 x float> %61, ptr %12, align 8
  %62 = call noundef nonnull align 4 dereferenceable(4) ptr @_ZN7Vector2ixEi(ptr noundef nonnull align 4 dereferenceable(8) %12, i32 noundef 1)
  %63 = load float, ptr %62, align 4, !tbaa !5
  %64 = fsub float %60, %63
  %65 = load i32, ptr %27, align 4, !tbaa !22
  %66 = add nsw i32 %65, -1
  %67 = sitofp i32 %66 to float
  %68 = fdiv float %64, %67
  call void @_ZN7Vector2C2Eff(ptr noundef nonnull align 4 dereferenceable(8) %8, float noundef %57, float noundef %68)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %9) #8
  call void @llvm.lifetime.start.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #8
  %69 = call <2 x float> @_ZNK5Box2D10BottomLeftEv(ptr noundef nonnull align 4 dereferenceable(16) %24)
  store <2 x float> %69, ptr %14, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %16) #8
  %70 = call <2 x float> @_ZNK5Box2D10BottomLeftEv(ptr noundef nonnull align 4 dereferenceable(16) %24)
  store <2 x float> %70, ptr %16, align 8
  %71 = invoke <2 x float> @_ZNK7Vector2plERKS_(ptr noundef nonnull align 4 dereferenceable(8) %16, ptr noundef nonnull align 4 dereferenceable(8) %8)
          to label %72 unwind label %99

72:                                               ; preds = %45
  store <2 x float> %71, ptr %15, align 8
  call void @_ZN5Box2DC2ERK7Vector2S2_(ptr noundef nonnull align 4 dereferenceable(16) %13, ptr noundef nonnull align 4 dereferenceable(8) %14, ptr noundef nonnull align 4 dereferenceable(8) %15)
  %73 = invoke <2 x float> @_ZNK5Box2D4SizeEv(ptr noundef nonnull align 4 dereferenceable(16) %13)
          to label %74 unwind label %99

74:                                               ; preds = %72
  %.sroa.0.0.vec.extract = extractelement <2 x float> %73, i64 0
  %75 = getelementptr inbounds i8, ptr %0, i64 196
  store float %.sroa.0.0.vec.extract, ptr %75, align 4, !tbaa !26
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  ret void

76:                                               ; preds = %1
  %77 = landingpad { ptr, i32 }
          cleanup
  br label %103

78:                                               ; preds = %21
  %79 = landingpad { ptr, i32 }
          cleanup
  br label %102

80:                                               ; preds = %23
  %81 = landingpad { ptr, i32 }
          cleanup
  br label %101

82:                                               ; preds = %25
  %83 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %2) #8
  br label %101

84:                                               ; preds = %29
  %85 = landingpad { ptr, i32 }
          cleanup
  br label %88

86:                                               ; preds = %33
  %87 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %5) #8
  br label %88

88:                                               ; preds = %86, %84
  %.pn = phi { ptr, i32 } [ %87, %86 ], [ %85, %84 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %5) #8
  br label %101

89:                                               ; preds = %35
  %90 = landingpad { ptr, i32 }
          cleanup
  br label %93

91:                                               ; preds = %38
  %92 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %6) #8
  br label %93

93:                                               ; preds = %91, %89
  %.pn9 = phi { ptr, i32 } [ %92, %91 ], [ %90, %89 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %6) #8
  br label %101

94:                                               ; preds = %40
  %95 = landingpad { ptr, i32 }
          cleanup
  br label %98

96:                                               ; preds = %43
  %97 = landingpad { ptr, i32 }
          cleanup
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %7) #8
  br label %98

98:                                               ; preds = %96, %94
  %.pn11 = phi { ptr, i32 } [ %97, %96 ], [ %95, %94 ]
  call void @llvm.lifetime.end.p0(i64 48, ptr nonnull %7) #8
  br label %101

99:                                               ; preds = %72, %45
  %100 = landingpad { ptr, i32 }
          cleanup
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %16) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %15) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #8
  call void @llvm.lifetime.end.p0(i64 16, ptr nonnull %13) #8
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #8
  br label %101

101:                                              ; preds = %99, %98, %93, %88, %82, %80
  %.pn13 = phi { ptr, i32 } [ %100, %99 ], [ %.pn11, %98 ], [ %.pn9, %93 ], [ %.pn, %88 ], [ %83, %82 ], [ %81, %80 ]
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %22) #8
  br label %102

102:                                              ; preds = %101, %78
  %.pn13.pn = phi { ptr, i32 } [ %.pn13, %101 ], [ %79, %78 ]
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %20) #8
  br label %103

103:                                              ; preds = %102, %76
  %.pn13.pn.pn = phi { ptr, i32 } [ %.pn13.pn, %102 ], [ %77, %76 ]
  call void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48) %19) #8
  resume { ptr, i32 } %.pn13.pn.pn
}

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN13ScalarField2DC2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #3 align 2

declare i32 @__gxx_personality_v0(...)

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Box2DC2Ev(ptr noundef nonnull align 4 dereferenceable(16)) unnamed_addr #3 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Vector2C2Ef(ptr noundef nonnull align 4 dereferenceable(8), float noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN5Box2DC2ERK7Vector2f(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8), float noundef) unnamed_addr #5 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN7Vector2C2Eff(ptr noundef nonnull align 4 dereferenceable(8), float noundef, float noundef) unnamed_addr #4 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local void @_ZN13ScalarField2DC2EiiRK5Box2Df(ptr noundef nonnull align 8 dereferenceable(48), i32 noundef, i32 noundef, ptr noundef nonnull align 4 dereferenceable(16), float noundef) unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local noundef nonnull align 8 dereferenceable(48) ptr @_ZN13ScalarField2DaSERKS_(ptr noundef nonnull align 8 dereferenceable(48), ptr noundef nonnull align 8 dereferenceable(48)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN13ScalarField2DD2Ev(ptr noundef nonnull align 8 dereferenceable(48)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZNK5Box2D8TopRightEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #7 align 2

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local <2 x float> @_ZNK5Box2D10BottomLeftEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #7 align 2

; Function Attrs: mustprogress uwtable
declare dso_local <2 x float> @_ZNK7Vector2plERKS_(ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) local_unnamed_addr #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local void @_ZN5Box2DC2ERK7Vector2S2_(ptr noundef nonnull align 4 dereferenceable(16), ptr noundef nonnull align 4 dereferenceable(8), ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #6 align 2

; Function Attrs: inlinehint mustprogress uwtable
declare dso_local <2 x float> @_ZNK5Box2D4SizeEv(ptr noundef nonnull align 4 dereferenceable(16)) local_unnamed_addr #5 align 2

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

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"float", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !11, i64 16}
!10 = !{!"_ZTS12DuneSediment", !6, i64 0, !6, i64 4, !6, i64 8, !6, i64 12, !11, i64 16, !11, i64 17, !12, i64 24, !12, i64 72, !12, i64 120, !13, i64 168, !15, i64 184, !15, i64 188, !6, i64 192, !6, i64 196, !14, i64 200}
!11 = !{!"bool", !7, i64 0}
!12 = !{!"_ZTS13ScalarField2D", !13, i64 0, !15, i64 16, !15, i64 20, !16, i64 24}
!13 = !{!"_ZTS5Box2D", !14, i64 0, !14, i64 8}
!14 = !{!"_ZTS7Vector2", !6, i64 0, !6, i64 4}
!15 = !{!"int", !7, i64 0}
!16 = !{!"_ZTSSt6vectorIfSaIfEE", !17, i64 0}
!17 = !{!"_ZTSSt12_Vector_baseIfSaIfEE", !18, i64 0}
!18 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE12_Vector_implE", !19, i64 0}
!19 = !{!"_ZTSNSt12_Vector_baseIfSaIfEE17_Vector_impl_dataE", !20, i64 0, !20, i64 8, !20, i64 16}
!20 = !{!"any pointer", !7, i64 0}
!21 = !{!10, !11, i64 17}
!22 = !{!10, !15, i64 188}
!23 = !{!10, !15, i64 184}
!24 = !{i64 0, i64 4, !5, i64 4, i64 4, !5, i64 8, i64 4, !5, i64 12, i64 4, !5}
!25 = !{!10, !6, i64 192}
!26 = !{!10, !6, i64 196}


; Effective O3 passes: EarlyCSEPass,GlobalOptPass,InferAlignmentPass,InferFunctionAttrsPass,InstCombinePass,SLPVectorizerPass,SROAPass,SimplifyCFGPass,TailCallElimPass