; LLVM IR from niessner/Matterport :: code/gaps/pkgs/R3Shapes/R3Grid.ll (ZN6R3Grid3AddERKS_RK7R3PointS4_d)

; 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.R3Grid = type { %class.R3Affine, %class.R3Affine, double, double, ptr, [3 x i32], i32, i32, i32 }
%class.R3Affine = type { %class.R3Transformation, %class.R4Matrix, %class.R4Matrix, %class.RNFlags }
%class.R3Transformation = type { ptr }
%class.R4Matrix = type { [4 x [4 x double]] }
%class.RNFlags = type { i64 }

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

declare void @_Z7RNAbortPKcz(ptr noundef, ...) #0

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

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

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #2

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

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

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

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

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R3Grid3AddERKS_RK7R3PointS4_d(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(592) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef %4) #3 align 2 {
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca double, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca i32, align 4
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca i32, align 4
  %20 = alloca double, align 8
  %21 = alloca i32, align 4
  %22 = alloca double, align 8
  %23 = alloca ptr, align 8
  %24 = alloca i32, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store ptr %1, ptr %7, align 8, !tbaa !5
  store ptr %2, ptr %8, align 8, !tbaa !5
  store ptr %3, ptr %9, align 8, !tbaa !5
  store double %4, ptr %10, align 8, !tbaa !9
  %25 = load ptr, ptr %6, align 8
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %26)
  %28 = load ptr, ptr %9, align 8, !tbaa !5
  %29 = call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %28)
  %30 = fsub double %27, %29
  %31 = fadd double %30, 1.000000e+00
  %32 = fptosi double %31 to i32
  store i32 %32, ptr %11, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %33 = load ptr, ptr %8, align 8, !tbaa !5
  %34 = call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %33)
  %35 = load ptr, ptr %9, align 8, !tbaa !5
  %36 = call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %35)
  %37 = fsub double %34, %36
  %38 = fadd double %37, 1.000000e+00
  %39 = fptosi double %38 to i32
  store i32 %39, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %40)
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %42)
  %44 = fsub double %41, %43
  %45 = fadd double %44, 1.000000e+00
  %46 = fptosi double %45 to i32
  store i32 %46, ptr %13, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %47)
  %49 = load ptr, ptr %9, align 8, !tbaa !5
  %50 = call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %49)
  %51 = fadd double %48, %50
  %52 = fptosi double %51 to i32
  store i32 %52, ptr %14, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %53 = load ptr, ptr %8, align 8, !tbaa !5
  %54 = call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %53)
  %55 = load ptr, ptr %9, align 8, !tbaa !5
  %56 = call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %55)
  %57 = fadd double %54, %56
  %58 = fptosi double %57 to i32
  store i32 %58, ptr %15, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %59 = load ptr, ptr %8, align 8, !tbaa !5
  %60 = call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %59)
  %61 = load ptr, ptr %9, align 8, !tbaa !5
  %62 = call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %61)
  %63 = fadd double %60, %62
  %64 = fptosi double %63 to i32
  store i32 %64, ptr %16, align 4, !tbaa !11
  %65 = load i32, ptr %11, align 4, !tbaa !11
  %66 = icmp slt i32 %65, 0
  br i1 %66, label %67, label %68

67:                                               ; preds = %5
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %68

68:                                               ; preds = %67, %5
  %69 = load i32, ptr %12, align 4, !tbaa !11
  %70 = icmp slt i32 %69, 0
  br i1 %70, label %71, label %72

71:                                               ; preds = %68
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %72

72:                                               ; preds = %71, %68
  %73 = load i32, ptr %13, align 4, !tbaa !11
  %74 = icmp slt i32 %73, 0
  br i1 %74, label %75, label %76

75:                                               ; preds = %72
  store i32 0, ptr %13, align 4, !tbaa !11
  br label %76

76:                                               ; preds = %75, %72
  %77 = load i32, ptr %14, align 4, !tbaa !11
  %78 = icmp slt i32 %77, 0
  br i1 %78, label %79, label %80

79:                                               ; preds = %76
  store i32 1, ptr %17, align 4
  br label %243

80:                                               ; preds = %76
  %81 = load i32, ptr %15, align 4, !tbaa !11
  %82 = icmp slt i32 %81, 0
  br i1 %82, label %83, label %84

83:                                               ; preds = %80
  store i32 1, ptr %17, align 4
  br label %243

84:                                               ; preds = %80
  %85 = load i32, ptr %16, align 4, !tbaa !11
  %86 = icmp slt i32 %85, 0
  br i1 %86, label %87, label %88

87:                                               ; preds = %84
  store i32 1, ptr %17, align 4
  br label %243

88:                                               ; preds = %84
  %89 = load i32, ptr %11, align 4, !tbaa !11
  %90 = call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %91 = icmp sge i32 %89, %90
  br i1 %91, label %92, label %93

92:                                               ; preds = %88
  store i32 1, ptr %17, align 4
  br label %243

93:                                               ; preds = %88
  %94 = load i32, ptr %12, align 4, !tbaa !11
  %95 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %96 = icmp sge i32 %94, %95
  br i1 %96, label %97, label %98

97:                                               ; preds = %93
  store i32 1, ptr %17, align 4
  br label %243

98:                                               ; preds = %93
  %99 = load i32, ptr %13, align 4, !tbaa !11
  %100 = call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %101 = icmp sge i32 %99, %100
  br i1 %101, label %102, label %103

102:                                              ; preds = %98
  store i32 1, ptr %17, align 4
  br label %243

103:                                              ; preds = %98
  %104 = load i32, ptr %14, align 4, !tbaa !11
  %105 = call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %106 = icmp sge i32 %104, %105
  br i1 %106, label %107, label %110

107:                                              ; preds = %103
  %108 = call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %109 = sub nsw i32 %108, 1
  store i32 %109, ptr %14, align 4, !tbaa !11
  br label %110

110:                                              ; preds = %107, %103
  %111 = load i32, ptr %15, align 4, !tbaa !11
  %112 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %113 = icmp sge i32 %111, %112
  br i1 %113, label %114, label %117

114:                                              ; preds = %110
  %115 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %116 = sub nsw i32 %115, 1
  store i32 %116, ptr %15, align 4, !tbaa !11
  br label %117

117:                                              ; preds = %114, %110
  %118 = load i32, ptr %16, align 4, !tbaa !11
  %119 = call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %120 = icmp sge i32 %118, %119
  br i1 %120, label %121, label %124

121:                                              ; preds = %117
  %122 = call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %25)
  %123 = sub nsw i32 %122, 1
  store i32 %123, ptr %16, align 4, !tbaa !11
  br label %124

124:                                              ; preds = %121, %117
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #5
  %125 = load i32, ptr %13, align 4, !tbaa !11
  %126 = sitofp i32 %125 to double
  %127 = load ptr, ptr %8, align 8, !tbaa !5
  %128 = call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %127)
  %129 = fsub double %126, %128
  %130 = load ptr, ptr %9, align 8, !tbaa !5
  %131 = call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %130)
  %132 = fadd double %129, %131
  store double %132, ptr %18, align 8, !tbaa !9
  %133 = load double, ptr %18, align 8, !tbaa !9
  %134 = fcmp oge double %133, 0.000000e+00
  br i1 %134, label %135, label %141

135:                                              ; preds = %124
  %136 = load double, ptr %18, align 8, !tbaa !9
  %137 = load ptr, ptr %7, align 8, !tbaa !5
  %138 = call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %137)
  %139 = sitofp i32 %138 to double
  %140 = fcmp olt double %136, %139
  br i1 %140, label %142, label %141

141:                                              ; preds = %135, %124
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.19, i32 noundef 1218, ptr noundef @.str.2)
  br label %142

142:                                              ; preds = %141, %135
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  %143 = load i32, ptr %13, align 4, !tbaa !11
  store i32 %143, ptr %19, align 4, !tbaa !11
  br label %144

144:                                              ; preds = %237, %142
  %145 = load i32, ptr %19, align 4, !tbaa !11
  %146 = load i32, ptr %16, align 4, !tbaa !11
  %147 = icmp sle i32 %145, %146
  br i1 %147, label %149, label %148

148:                                              ; preds = %144
  store i32 2, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  br label %242

149:                                              ; preds = %144
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #5
  %150 = load i32, ptr %12, align 4, !tbaa !11
  %151 = sitofp i32 %150 to double
  %152 = load ptr, ptr %8, align 8, !tbaa !5
  %153 = call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %152)
  %154 = fsub double %151, %153
  %155 = load ptr, ptr %9, align 8, !tbaa !5
  %156 = call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %155)
  %157 = fadd double %154, %156
  store double %157, ptr %20, align 8, !tbaa !9
  %158 = load double, ptr %20, align 8, !tbaa !9
  %159 = fcmp oge double %158, 0.000000e+00
  br i1 %159, label %160, label %166

160:                                              ; preds = %149
  %161 = load double, ptr %20, align 8, !tbaa !9
  %162 = load ptr, ptr %7, align 8, !tbaa !5
  %163 = call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %162)
  %164 = sitofp i32 %163 to double
  %165 = fcmp olt double %161, %164
  br i1 %165, label %167, label %166

166:                                              ; preds = %160, %149
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.20, i32 noundef 1221, ptr noundef @.str.2)
  br label %167

167:                                              ; preds = %166, %160
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %168 = load i32, ptr %12, align 4, !tbaa !11
  store i32 %168, ptr %21, align 4, !tbaa !11
  br label %169

169:                                              ; preds = %231, %167
  %170 = load i32, ptr %21, align 4, !tbaa !11
  %171 = load i32, ptr %15, align 4, !tbaa !11
  %172 = icmp sle i32 %170, %171
  br i1 %172, label %174, label %173

173:                                              ; preds = %169
  store i32 5, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %236

174:                                              ; preds = %169
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #5
  %175 = load i32, ptr %11, align 4, !tbaa !11
  %176 = sitofp i32 %175 to double
  %177 = load ptr, ptr %8, align 8, !tbaa !5
  %178 = call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %177)
  %179 = fsub double %176, %178
  %180 = load ptr, ptr %9, align 8, !tbaa !5
  %181 = call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %180)
  %182 = fadd double %179, %181
  store double %182, ptr %22, align 8, !tbaa !9
  %183 = load double, ptr %22, align 8, !tbaa !9
  %184 = fcmp oge double %183, 0.000000e+00
  br i1 %184, label %185, label %191

185:                                              ; preds = %174
  %186 = load double, ptr %22, align 8, !tbaa !9
  %187 = load ptr, ptr %7, align 8, !tbaa !5
  %188 = call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %187)
  %189 = sitofp i32 %188 to double
  %190 = fcmp olt double %186, %189
  br i1 %190, label %192, label %191

191:                                              ; preds = %185, %174
  call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef @.str, ptr noundef @.str.21, i32 noundef 1224, ptr noundef @.str.2)
  br label %192

192:                                              ; preds = %191, %185
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  %193 = getelementptr inbounds %class.R3Grid, ptr %25, i32 0, i32 4
  %194 = load ptr, ptr %193, align 8, !tbaa !13
  %195 = load i32, ptr %19, align 4, !tbaa !11
  %196 = getelementptr inbounds %class.R3Grid, ptr %25, i32 0, i32 7
  %197 = load i32, ptr %196, align 8, !tbaa !20
  %198 = mul nsw i32 %195, %197
  %199 = load i32, ptr %21, align 4, !tbaa !11
  %200 = getelementptr inbounds %class.R3Grid, ptr %25, i32 0, i32 6
  %201 = load i32, ptr %200, align 4, !tbaa !21
  %202 = mul nsw i32 %199, %201
  %203 = add nsw i32 %198, %202
  %204 = load i32, ptr %11, align 4, !tbaa !11
  %205 = add nsw i32 %203, %204
  %206 = sext i32 %205 to i64
  %207 = getelementptr inbounds double, ptr %194, i64 %206
  store ptr %207, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #5
  %208 = load i32, ptr %11, align 4, !tbaa !11
  store i32 %208, ptr %24, align 4, !tbaa !11
  br label %209

209:                                              ; preds = %225, %192
  %210 = load i32, ptr %24, align 4, !tbaa !11
  %211 = load i32, ptr %14, align 4, !tbaa !11
  %212 = icmp sle i32 %210, %211
  br i1 %212, label %214, label %213

213:                                              ; preds = %209
  store i32 8, ptr %17, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #5
  br label %230

214:                                              ; preds = %209
  %215 = load double, ptr %10, align 8, !tbaa !9
  %216 = load ptr, ptr %7, align 8, !tbaa !5
  %217 = load double, ptr %22, align 8, !tbaa !9
  %218 = load double, ptr %20, align 8, !tbaa !9
  %219 = load double, ptr %18, align 8, !tbaa !9
  %220 = call noundef double @_ZNK6R3Grid9GridValueEddd(ptr noundef nonnull align 8 dereferenceable(592) %216, double noundef %217, double noundef %218, double noundef %219)
  %221 = load ptr, ptr %23, align 8, !tbaa !5
  %222 = getelementptr inbounds double, ptr %221, i32 1
  store ptr %222, ptr %23, align 8, !tbaa !5
  %223 = load double, ptr %221, align 8, !tbaa !9
  %224 = call double @llvm.fmuladd.f64(double %215, double %220, double %223)
  store double %224, ptr %221, align 8, !tbaa !9
  br label %225

225:                                              ; preds = %214
  %226 = load i32, ptr %24, align 4, !tbaa !11
  %227 = add nsw i32 %226, 1
  store i32 %227, ptr %24, align 4, !tbaa !11
  %228 = load double, ptr %22, align 8, !tbaa !9
  %229 = fadd double %228, 1.000000e+00
  store double %229, ptr %22, align 8, !tbaa !9
  br label %209, !llvm.loop !22

230:                                              ; preds = %213
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #5
  br label %231

231:                                              ; preds = %230
  %232 = load i32, ptr %21, align 4, !tbaa !11
  %233 = add nsw i32 %232, 1
  store i32 %233, ptr %21, align 4, !tbaa !11
  %234 = load double, ptr %20, align 8, !tbaa !9
  %235 = fadd double %234, 1.000000e+00
  store double %235, ptr %20, align 8, !tbaa !9
  br label %169, !llvm.loop !24

236:                                              ; preds = %173
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #5
  br label %237

237:                                              ; preds = %236
  %238 = load i32, ptr %19, align 4, !tbaa !11
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %19, align 4, !tbaa !11
  %240 = load double, ptr %18, align 8, !tbaa !9
  %241 = fadd double %240, 1.000000e+00
  store double %241, ptr %18, align 8, !tbaa !9
  br label %144, !llvm.loop !25

242:                                              ; preds = %148
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #5
  store i32 0, ptr %17, align 4
  br label %243

243:                                              ; preds = %242, %102, %97, %92, %87, %83, %79
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  %244 = load i32, ptr %17, align 4
  switch i32 %244, label %246 [
    i32 0, label %245
    i32 1, label %245
  ]

245:                                              ; preds = %243, %243
  ret void

246:                                              ; preds = %243
  unreachable
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24)) #4 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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 #5 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!14, !6, i64 560}
!14 = !{!"_ZTS6R3Grid", !15, i64 0, !15, i64 272, !10, i64 544, !10, i64 552, !6, i64 560, !7, i64 568, !12, i64 580, !12, i64 584, !12, i64 588}
!15 = !{!"_ZTS8R3Affine", !16, i64 0, !17, i64 8, !17, i64 136, !18, i64 264}
!16 = !{!"_ZTS16R3Transformation"}
!17 = !{!"_ZTS8R4Matrix", !7, i64 0}
!18 = !{!"_ZTS7RNFlags", !19, i64 0}
!19 = !{!"long", !7, i64 0}
!20 = !{!14, !12, i64 584}
!21 = !{!14, !12, i64 580}
!22 = distinct !{!22, !23}
!23 = !{!"llvm.loop.mustprogress"}
!24 = distinct !{!24, !23}
!25 = distinct !{!25, !23}


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

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

declare void @_Z7RNAbortPKcz(ptr noundef, ...) local_unnamed_addr #0

; Function Attrs: mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare double @llvm.fmuladd.f64(double, double, double) #1

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

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592)) local_unnamed_addr #3 align 2

; Function Attrs: mustprogress uwtable
define dso_local void @_ZN6R3Grid3AddERKS_RK7R3PointS4_d(ptr noundef nonnull align 8 dereferenceable(592) %0, ptr noundef nonnull align 8 dereferenceable(592) %1, ptr noundef nonnull align 8 dereferenceable(24) %2, ptr noundef nonnull align 8 dereferenceable(24) %3, double noundef %4) local_unnamed_addr #2 align 2 {
  %6 = tail call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %7 = tail call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %8 = fsub double %6, %7
  %9 = fadd double %8, 1.000000e+00
  %10 = fptosi double %9 to i32
  %11 = tail call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %12 = tail call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %13 = fsub double %11, %12
  %14 = fadd double %13, 1.000000e+00
  %15 = fptosi double %14 to i32
  %16 = tail call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %17 = tail call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %18 = fsub double %16, %17
  %19 = fadd double %18, 1.000000e+00
  %20 = fptosi double %19 to i32
  %21 = tail call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %22 = tail call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %23 = fadd double %21, %22
  %24 = fptosi double %23 to i32
  %25 = tail call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %26 = tail call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %27 = fadd double %25, %26
  %28 = fptosi double %27 to i32
  %29 = tail call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %30 = tail call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %31 = fadd double %29, %30
  %32 = fptosi double %31 to i32
  %spec.store.select = tail call i32 @llvm.smax.i32(i32 %10, i32 0)
  %spec.store.select2 = tail call i32 @llvm.smax.i32(i32 %15, i32 0)
  %spec.store.select1 = tail call i32 @llvm.smax.i32(i32 %20, i32 0)
  %33 = icmp slt i32 %24, 0
  %34 = icmp slt i32 %28, 0
  %or.cond = select i1 %33, i1 true, i1 %34
  %35 = icmp slt i32 %32, 0
  %or.cond91 = select i1 %or.cond, i1 true, i1 %35
  br i1 %or.cond91, label %.loopexit, label %36

36:                                               ; preds = %5
  %37 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %.not = icmp slt i32 %spec.store.select, %37
  br i1 %.not, label %38, label %.loopexit

38:                                               ; preds = %36
  %39 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %.not83 = icmp slt i32 %spec.store.select2, %39
  br i1 %.not83, label %40, label %.loopexit

40:                                               ; preds = %38
  %41 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %.not84 = icmp slt i32 %spec.store.select1, %41
  br i1 %.not84, label %42, label %.loopexit

42:                                               ; preds = %40
  %43 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %.not85 = icmp sgt i32 %43, %24
  br i1 %.not85, label %47, label %44

44:                                               ; preds = %42
  %45 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %46 = add nsw i32 %45, -1
  br label %47

47:                                               ; preds = %44, %42
  %.076 = phi i32 [ %46, %44 ], [ %24, %42 ]
  %48 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %.not86 = icmp sgt i32 %48, %28
  br i1 %.not86, label %52, label %49

49:                                               ; preds = %47
  %50 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %51 = add nsw i32 %50, -1
  br label %52

52:                                               ; preds = %49, %47
  %.075 = phi i32 [ %51, %49 ], [ %28, %47 ]
  %53 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %.not87 = icmp sgt i32 %53, %32
  br i1 %.not87, label %57, label %54

54:                                               ; preds = %52
  %55 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %0)
  %56 = add nsw i32 %55, -1
  br label %57

57:                                               ; preds = %54, %52
  %.074 = phi i32 [ %56, %54 ], [ %32, %52 ]
  %58 = uitofp nneg i32 %spec.store.select1 to double
  %59 = tail call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %60 = fsub double %58, %59
  %61 = tail call noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %62 = fadd double %60, %61
  %63 = fcmp ult double %62, 0.000000e+00
  br i1 %63, label %68, label %64

64:                                               ; preds = %57
  %65 = tail call noundef i32 @_ZNK6R3Grid11ZResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %1)
  %66 = sitofp i32 %65 to double
  %67 = fcmp olt double %62, %66
  br i1 %67, label %69, label %68

68:                                               ; preds = %64, %57
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.19, i32 noundef 1218, ptr noundef nonnull @.str.2)
  br label %69

69:                                               ; preds = %68, %64
  %.not88102 = icmp sgt i32 %spec.store.select1, %.074
  br i1 %.not88102, label %.loopexit, label %.lr.ph107

.lr.ph107:                                        ; preds = %69
  %70 = uitofp nneg i32 %spec.store.select2 to double
  %.not8996 = icmp sgt i32 %spec.store.select2, %.075
  %71 = uitofp nneg i32 %spec.store.select to double
  %72 = getelementptr inbounds i8, ptr %0, i64 560
  %73 = getelementptr inbounds i8, ptr %0, i64 584
  %74 = getelementptr inbounds i8, ptr %0, i64 580
  %.not8996.fr = freeze i1 %.not8996
  br i1 %.not8996.fr, label %.lr.ph107.split.us, label %.lr.ph107.split

.lr.ph107.split.us:                               ; preds = %.lr.ph107, %85
  %.072104.us = phi i32 [ %86, %85 ], [ %spec.store.select1, %.lr.ph107 ]
  %75 = tail call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %76 = fsub double %70, %75
  %77 = tail call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %78 = fadd double %76, %77
  %79 = fcmp ult double %78, 0.000000e+00
  br i1 %79, label %84, label %80

80:                                               ; preds = %.lr.ph107.split.us
  %81 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %1)
  %82 = sitofp i32 %81 to double
  %83 = fcmp olt double %78, %82
  br i1 %83, label %85, label %84

84:                                               ; preds = %80, %.lr.ph107.split.us
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.20, i32 noundef 1221, ptr noundef nonnull @.str.2)
  br label %85

85:                                               ; preds = %84, %80
  %86 = add nuw i32 %.072104.us, 1
  %exitcond114.not = icmp eq i32 %.072104.us, %.074
  br i1 %exitcond114.not, label %.loopexit, label %.lr.ph107.split.us, !llvm.loop !5

.lr.ph107.split:                                  ; preds = %.lr.ph107
  %.not9092 = icmp sgt i32 %spec.store.select, %.076
  %.not9092.fr = freeze i1 %.not9092
  br i1 %.not9092.fr, label %.lr.ph107.split.split.us, label %.lr.ph107.split.split

.lr.ph107.split.split.us:                         ; preds = %.lr.ph107.split, %._crit_edge101.split.us.us
  %.072104.us108 = phi i32 [ %109, %._crit_edge101.split.us.us ], [ %spec.store.select1, %.lr.ph107.split ]
  %87 = tail call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %88 = fsub double %70, %87
  %89 = tail call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %90 = fadd double %88, %89
  %91 = fcmp ult double %90, 0.000000e+00
  br i1 %91, label %96, label %92

92:                                               ; preds = %.lr.ph107.split.split.us
  %93 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %1)
  %94 = sitofp i32 %93 to double
  %95 = fcmp olt double %90, %94
  br i1 %95, label %.lr.ph100.us.preheader, label %96

96:                                               ; preds = %92, %.lr.ph107.split.split.us
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.20, i32 noundef 1221, ptr noundef nonnull @.str.2)
  br label %.lr.ph100.us.preheader

.lr.ph100.us.preheader:                           ; preds = %96, %92
  br label %.lr.ph100.us

.lr.ph100.us:                                     ; preds = %.lr.ph100.us.preheader, %107
  %.07098.us.us = phi i32 [ %108, %107 ], [ %spec.store.select2, %.lr.ph100.us.preheader ]
  %97 = tail call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %98 = fsub double %71, %97
  %99 = tail call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %100 = fadd double %98, %99
  %101 = fcmp ult double %100, 0.000000e+00
  br i1 %101, label %106, label %102

102:                                              ; preds = %.lr.ph100.us
  %103 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %1)
  %104 = sitofp i32 %103 to double
  %105 = fcmp olt double %100, %104
  br i1 %105, label %107, label %106

106:                                              ; preds = %102, %.lr.ph100.us
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.21, i32 noundef 1224, ptr noundef nonnull @.str.2)
  br label %107

107:                                              ; preds = %106, %102
  %108 = add nuw nsw i32 %.07098.us.us, 1
  %.not89.us.us.not = icmp slt i32 %.07098.us.us, %.075
  br i1 %.not89.us.us.not, label %.lr.ph100.us, label %._crit_edge101.split.us.us, !llvm.loop !7

._crit_edge101.split.us.us:                       ; preds = %107
  %109 = add nuw i32 %.072104.us108, 1
  %exitcond113.not = icmp eq i32 %.072104.us108, %.074
  br i1 %exitcond113.not, label %.loopexit, label %.lr.ph107.split.split.us, !llvm.loop !5

.lr.ph107.split.split:                            ; preds = %.lr.ph107.split, %._crit_edge101.split
  %.072104 = phi i32 [ %120, %._crit_edge101.split ], [ %spec.store.select1, %.lr.ph107.split ]
  %.073103 = phi double [ %121, %._crit_edge101.split ], [ %62, %.lr.ph107.split ]
  %110 = tail call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %111 = fsub double %70, %110
  %112 = tail call noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %113 = fadd double %111, %112
  %114 = fcmp ult double %113, 0.000000e+00
  br i1 %114, label %119, label %115

115:                                              ; preds = %.lr.ph107.split.split
  %116 = tail call noundef i32 @_ZNK6R3Grid11YResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %1)
  %117 = sitofp i32 %116 to double
  %118 = fcmp olt double %113, %117
  br i1 %118, label %.lr.ph100.preheader, label %119

.lr.ph100.preheader:                              ; preds = %119, %115
  br label %.lr.ph100

119:                                              ; preds = %115, %.lr.ph107.split.split
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.20, i32 noundef 1221, ptr noundef nonnull @.str.2)
  br label %.lr.ph100.preheader

._crit_edge101.split:                             ; preds = %._crit_edge
  %120 = add nuw i32 %.072104, 1
  %121 = fadd double %.073103, 1.000000e+00
  %exitcond.not = icmp eq i32 %.072104, %.074
  br i1 %exitcond.not, label %.loopexit, label %.lr.ph107.split.split, !llvm.loop !5

.lr.ph100:                                        ; preds = %.lr.ph100.preheader, %._crit_edge
  %.07098 = phi i32 [ %141, %._crit_edge ], [ %spec.store.select2, %.lr.ph100.preheader ]
  %.07197 = phi double [ %142, %._crit_edge ], [ %113, %.lr.ph100.preheader ]
  %122 = tail call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %2)
  %123 = fsub double %71, %122
  %124 = tail call noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24) %3)
  %125 = fadd double %123, %124
  %126 = fcmp ult double %125, 0.000000e+00
  br i1 %126, label %131, label %127

127:                                              ; preds = %.lr.ph100
  %128 = tail call noundef i32 @_ZNK6R3Grid11XResolutionEv(ptr noundef nonnull align 8 dereferenceable(592) %1)
  %129 = sitofp i32 %128 to double
  %130 = fcmp olt double %125, %129
  br i1 %130, label %.lr.ph, label %131

131:                                              ; preds = %127, %.lr.ph100
  tail call void (ptr, ...) @_Z7RNAbortPKcz(ptr noundef nonnull @.str, ptr noundef nonnull @.str.21, i32 noundef 1224, ptr noundef nonnull @.str.2)
  br label %.lr.ph

.lr.ph:                                           ; preds = %131, %127
  %132 = load ptr, ptr %72, align 8, !tbaa !8
  %133 = load i32, ptr %73, align 8, !tbaa !20
  %134 = mul nsw i32 %133, %.072104
  %135 = load i32, ptr %74, align 4, !tbaa !21
  %136 = mul nsw i32 %135, %.07098
  %137 = add i32 %134, %spec.store.select
  %138 = add i32 %137, %136
  %139 = sext i32 %138 to i64
  %140 = getelementptr inbounds double, ptr %132, i64 %139
  br label %143

._crit_edge:                                      ; preds = %143
  %141 = add nuw nsw i32 %.07098, 1
  %142 = fadd double %.07197, 1.000000e+00
  %.not89.not = icmp slt i32 %.07098, %.075
  br i1 %.not89.not, label %.lr.ph100, label %._crit_edge101.split, !llvm.loop !7

143:                                              ; preds = %.lr.ph, %143
  %.095 = phi i32 [ %spec.store.select, %.lr.ph ], [ %148, %143 ]
  %.06894 = phi ptr [ %140, %.lr.ph ], [ %145, %143 ]
  %.06993 = phi double [ %125, %.lr.ph ], [ %149, %143 ]
  %144 = tail call noundef double @_ZNK6R3Grid9GridValueEddd(ptr noundef nonnull align 8 dereferenceable(592) %1, double noundef %.06993, double noundef %.07197, double noundef %.073103)
  %145 = getelementptr inbounds i8, ptr %.06894, i64 8
  %146 = load double, ptr %.06894, align 8, !tbaa !22
  %147 = tail call double @llvm.fmuladd.f64(double %4, double %144, double %146)
  store double %147, ptr %.06894, align 8, !tbaa !22
  %148 = add nuw nsw i32 %.095, 1
  %149 = fadd double %.06993, 1.000000e+00
  %.not90.not = icmp slt i32 %.095, %.076
  br i1 %.not90.not, label %143, label %._crit_edge, !llvm.loop !23

.loopexit:                                        ; preds = %._crit_edge101.split, %._crit_edge101.split.us.us, %85, %69, %40, %38, %36, %5
  ret void
}

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Point1XEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Point1YEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef double @_ZNK7R3Point1ZEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #3 align 2

; Function Attrs: nocallback nofree nosync nounwind speculatable willreturn memory(none)
declare i32 @llvm.smax.i32(i32, i32) #4

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

!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 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = distinct !{!7, !6}
!8 = !{!9, !18, i64 560}
!9 = !{!"_ZTS6R3Grid", !10, i64 0, !10, i64 272, !17, i64 544, !17, i64 552, !18, i64 560, !13, i64 568, !19, i64 580, !19, i64 584, !19, i64 588}
!10 = !{!"_ZTS8R3Affine", !11, i64 0, !12, i64 8, !12, i64 136, !15, i64 264}
!11 = !{!"_ZTS16R3Transformation"}
!12 = !{!"_ZTS8R4Matrix", !13, i64 0}
!13 = !{!"omnipotent char", !14, i64 0}
!14 = !{!"Simple C++ TBAA"}
!15 = !{!"_ZTS7RNFlags", !16, i64 0}
!16 = !{!"long", !13, i64 0}
!17 = !{!"double", !13, i64 0}
!18 = !{!"any pointer", !13, i64 0}
!19 = !{!"int", !13, i64 0}
!20 = !{!9, !19, i64 584}
!21 = !{!9, !19, i64 580}
!22 = !{!17, !17, i64 0}
!23 = distinct !{!23, !6}


; Effective O3 passes: GlobalOptPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,JumpThreadingPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass