; LLVM IR from CWI-EvolutionaryIntelligence/GOMEA :: gomea/src/fitness (fitness)

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

; 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 nosync nounwind speculatable willreturn memory(none)
declare { i64, i1 } @llvm.umul.with.overflow.i64(i64, i64) #1

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

; Function Attrs: nobuiltin nounwind
declare void @_ZdaPv(ptr noundef) #3

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN5gomea7fitness9fitness_tIdE33initializeObjectiveRotationMatrixEdi(ptr noundef nonnull align 8 dereferenceable(280) %0, double noundef %1, i32 noundef %2) #4 align 2 {
  %4 = alloca ptr, align 8
  %5 = alloca ptr, align 8
  %6 = alloca double, align 8
  %7 = alloca i32, align 4
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca double, align 8
  %17 = alloca double, align 8
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca ptr, align 8
  %23 = alloca i32, align 4
  %24 = alloca i32, align 4
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store double %1, ptr %6, align 8, !tbaa !9
  store i32 %2, ptr %7, align 4, !tbaa !11
  %27 = load ptr, ptr %5, align 8
  %28 = load double, ptr %6, align 8, !tbaa !9
  %29 = fcmp oeq double %28, 0.000000e+00
  br i1 %29, label %30, label %31

30:                                               ; preds = %3
  store ptr null, ptr %4, align 8
  br label %315

31:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #7
  %32 = load i32, ptr %7, align 4, !tbaa !11
  %33 = sext i32 %32 to i64
  %34 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %33, i64 8)
  %35 = extractvalue { i64, i1 } %34, 1
  %36 = extractvalue { i64, i1 } %34, 0
  %37 = select i1 %35, i64 -1, i64 %36
  %38 = call noalias noundef nonnull ptr @_Znam(i64 noundef %37) #8
  store ptr %38, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 0, ptr %9, align 4, !tbaa !11
  br label %39

39:                                               ; preds = %56, %31
  %40 = load i32, ptr %9, align 4, !tbaa !11
  %41 = load i32, ptr %7, align 4, !tbaa !11
  %42 = icmp slt i32 %40, %41
  br i1 %42, label %44, label %43

43:                                               ; preds = %39
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  br label %59

44:                                               ; preds = %39
  %45 = load i32, ptr %7, align 4, !tbaa !11
  %46 = sext i32 %45 to i64
  %47 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %46, i64 8)
  %48 = extractvalue { i64, i1 } %47, 1
  %49 = extractvalue { i64, i1 } %47, 0
  %50 = select i1 %48, i64 -1, i64 %49
  %51 = call noalias noundef nonnull ptr @_Znam(i64 noundef %50) #8
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = load i32, ptr %9, align 4, !tbaa !11
  %54 = sext i32 %53 to i64
  %55 = getelementptr inbounds ptr, ptr %52, i64 %54
  store ptr %51, ptr %55, align 8, !tbaa !5
  br label %56

56:                                               ; preds = %44
  %57 = load i32, ptr %9, align 4, !tbaa !11
  %58 = add nsw i32 %57, 1
  store i32 %58, ptr %9, align 4, !tbaa !11
  br label %39, !llvm.loop !13

59:                                               ; preds = %43
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #7
  %60 = load i32, ptr %7, align 4, !tbaa !11
  %61 = sext i32 %60 to i64
  %62 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %61, i64 8)
  %63 = extractvalue { i64, i1 } %62, 1
  %64 = extractvalue { i64, i1 } %62, 0
  %65 = select i1 %63, i64 -1, i64 %64
  %66 = call noalias noundef nonnull ptr @_Znam(i64 noundef %65) #8
  store ptr %66, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #7
  store i32 0, ptr %11, align 4, !tbaa !11
  br label %67

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

71:                                               ; preds = %67
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #7
  br label %87

72:                                               ; preds = %67
  %73 = load i32, ptr %7, align 4, !tbaa !11
  %74 = sext i32 %73 to i64
  %75 = call { i64, i1 } @llvm.umul.with.overflow.i64(i64 %74, i64 8)
  %76 = extractvalue { i64, i1 } %75, 1
  %77 = extractvalue { i64, i1 } %75, 0
  %78 = select i1 %76, i64 -1, i64 %77
  %79 = call noalias noundef nonnull ptr @_Znam(i64 noundef %78) #8
  %80 = load ptr, ptr %10, align 8, !tbaa !5
  %81 = load i32, ptr %11, align 4, !tbaa !11
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds ptr, ptr %80, i64 %82
  store ptr %79, ptr %83, align 8, !tbaa !5
  br label %84

84:                                               ; preds = %72
  %85 = load i32, ptr %11, align 4, !tbaa !11
  %86 = add nsw i32 %85, 1
  store i32 %86, ptr %11, align 4, !tbaa !11
  br label %67, !llvm.loop !15

87:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #7
  store i32 0, ptr %12, align 4, !tbaa !11
  br label %88

88:                                               ; preds = %120, %87
  %89 = load i32, ptr %12, align 4, !tbaa !11
  %90 = load i32, ptr %7, align 4, !tbaa !11
  %91 = icmp slt i32 %89, %90
  br i1 %91, label %93, label %92

92:                                               ; preds = %88
  store i32 8, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #7
  br label %123

93:                                               ; preds = %88
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #7
  store i32 0, ptr %14, align 4, !tbaa !11
  br label %94

94:                                               ; preds = %108, %93
  %95 = load i32, ptr %14, align 4, !tbaa !11
  %96 = load i32, ptr %7, align 4, !tbaa !11
  %97 = icmp slt i32 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  store i32 11, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #7
  br label %111

99:                                               ; preds = %94
  %100 = load ptr, ptr %10, align 8, !tbaa !5
  %101 = load i32, ptr %12, align 4, !tbaa !11
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds ptr, ptr %100, i64 %102
  %104 = load ptr, ptr %103, align 8, !tbaa !5
  %105 = load i32, ptr %14, align 4, !tbaa !11
  %106 = sext i32 %105 to i64
  %107 = getelementptr inbounds double, ptr %104, i64 %106
  store double 0.000000e+00, ptr %107, align 8, !tbaa !9
  br label %108

108:                                              ; preds = %99
  %109 = load i32, ptr %14, align 4, !tbaa !11
  %110 = add nsw i32 %109, 1
  store i32 %110, ptr %14, align 4, !tbaa !11
  br label %94, !llvm.loop !16

111:                                              ; preds = %98
  %112 = load ptr, ptr %10, align 8, !tbaa !5
  %113 = load i32, ptr %12, align 4, !tbaa !11
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds ptr, ptr %112, i64 %114
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  %117 = load i32, ptr %12, align 4, !tbaa !11
  %118 = sext i32 %117 to i64
  %119 = getelementptr inbounds double, ptr %116, i64 %118
  store double 1.000000e+00, ptr %119, align 8, !tbaa !9
  br label %120

120:                                              ; preds = %111
  %121 = load i32, ptr %12, align 4, !tbaa !11
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %12, align 4, !tbaa !11
  br label %88, !llvm.loop !17

123:                                              ; preds = %92
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %124 = load double, ptr %6, align 8, !tbaa !9
  %125 = fdiv double %124, 1.800000e+02
  %126 = fmul double %125, 0x400921FB54442D18
  store double %126, ptr %15, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %127 = load double, ptr %15, align 8, !tbaa !9
  %128 = call double @cos(double noundef %127) #7
  store double %128, ptr %16, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #7
  %129 = load double, ptr %15, align 8, !tbaa !9
  %130 = call double @sin(double noundef %129) #7
  store double %130, ptr %17, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #7
  store i32 0, ptr %18, align 4, !tbaa !11
  br label %131

131:                                              ; preds = %288, %123
  %132 = load i32, ptr %18, align 4, !tbaa !11
  %133 = load i32, ptr %7, align 4, !tbaa !11
  %134 = sub nsw i32 %133, 1
  %135 = icmp slt i32 %132, %134
  br i1 %135, label %137, label %136

136:                                              ; preds = %131
  store i32 14, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #7
  br label %291

137:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #7
  %138 = load i32, ptr %18, align 4, !tbaa !11
  %139 = add nsw i32 %138, 1
  store i32 %139, ptr %19, align 4, !tbaa !11
  br label %140

140:                                              ; preds = %284, %137
  %141 = load i32, ptr %19, align 4, !tbaa !11
  %142 = load i32, ptr %7, align 4, !tbaa !11
  %143 = icmp slt i32 %141, %142
  br i1 %143, label %145, label %144

144:                                              ; preds = %140
  store i32 17, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #7
  br label %287

145:                                              ; preds = %140
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #7
  store i32 0, ptr %20, align 4, !tbaa !11
  br label %146

146:                                              ; preds = %178, %145
  %147 = load i32, ptr %20, align 4, !tbaa !11
  %148 = load i32, ptr %7, align 4, !tbaa !11
  %149 = icmp slt i32 %147, %148
  br i1 %149, label %151, label %150

150:                                              ; preds = %146
  store i32 20, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #7
  br label %181

151:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #7
  store i32 0, ptr %21, align 4, !tbaa !11
  br label %152

152:                                              ; preds = %166, %151
  %153 = load i32, ptr %21, align 4, !tbaa !11
  %154 = load i32, ptr %7, align 4, !tbaa !11
  %155 = icmp slt i32 %153, %154
  br i1 %155, label %157, label %156

156:                                              ; preds = %152
  store i32 23, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #7
  br label %169

157:                                              ; preds = %152
  %158 = load ptr, ptr %8, align 8, !tbaa !5
  %159 = load i32, ptr %20, align 4, !tbaa !11
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds ptr, ptr %158, i64 %160
  %162 = load ptr, ptr %161, align 8, !tbaa !5
  %163 = load i32, ptr %21, align 4, !tbaa !11
  %164 = sext i32 %163 to i64
  %165 = getelementptr inbounds double, ptr %162, i64 %164
  store double 0.000000e+00, ptr %165, align 8, !tbaa !9
  br label %166

166:                                              ; preds = %157
  %167 = load i32, ptr %21, align 4, !tbaa !11
  %168 = add nsw i32 %167, 1
  store i32 %168, ptr %21, align 4, !tbaa !11
  br label %152, !llvm.loop !18

169:                                              ; preds = %156
  %170 = load ptr, ptr %8, align 8, !tbaa !5
  %171 = load i32, ptr %20, align 4, !tbaa !11
  %172 = sext i32 %171 to i64
  %173 = getelementptr inbounds ptr, ptr %170, i64 %172
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  %175 = load i32, ptr %20, align 4, !tbaa !11
  %176 = sext i32 %175 to i64
  %177 = getelementptr inbounds double, ptr %174, i64 %176
  store double 1.000000e+00, ptr %177, align 8, !tbaa !9
  br label %178

178:                                              ; preds = %169
  %179 = load i32, ptr %20, align 4, !tbaa !11
  %180 = add nsw i32 %179, 1
  store i32 %180, ptr %20, align 4, !tbaa !11
  br label %146, !llvm.loop !19

181:                                              ; preds = %150
  %182 = load double, ptr %16, align 8, !tbaa !9
  %183 = load ptr, ptr %8, align 8, !tbaa !5
  %184 = load i32, ptr %18, align 4, !tbaa !11
  %185 = sext i32 %184 to i64
  %186 = getelementptr inbounds ptr, ptr %183, i64 %185
  %187 = load ptr, ptr %186, align 8, !tbaa !5
  %188 = load i32, ptr %18, align 4, !tbaa !11
  %189 = sext i32 %188 to i64
  %190 = getelementptr inbounds double, ptr %187, i64 %189
  store double %182, ptr %190, align 8, !tbaa !9
  %191 = load double, ptr %17, align 8, !tbaa !9
  %192 = fneg double %191
  %193 = load ptr, ptr %8, align 8, !tbaa !5
  %194 = load i32, ptr %18, align 4, !tbaa !11
  %195 = sext i32 %194 to i64
  %196 = getelementptr inbounds ptr, ptr %193, i64 %195
  %197 = load ptr, ptr %196, align 8, !tbaa !5
  %198 = load i32, ptr %19, align 4, !tbaa !11
  %199 = sext i32 %198 to i64
  %200 = getelementptr inbounds double, ptr %197, i64 %199
  store double %192, ptr %200, align 8, !tbaa !9
  %201 = load double, ptr %17, align 8, !tbaa !9
  %202 = load ptr, ptr %8, align 8, !tbaa !5
  %203 = load i32, ptr %19, align 4, !tbaa !11
  %204 = sext i32 %203 to i64
  %205 = getelementptr inbounds ptr, ptr %202, i64 %204
  %206 = load ptr, ptr %205, align 8, !tbaa !5
  %207 = load i32, ptr %18, align 4, !tbaa !11
  %208 = sext i32 %207 to i64
  %209 = getelementptr inbounds double, ptr %206, i64 %208
  store double %201, ptr %209, align 8, !tbaa !9
  %210 = load double, ptr %16, align 8, !tbaa !9
  %211 = load ptr, ptr %8, align 8, !tbaa !5
  %212 = load i32, ptr %19, align 4, !tbaa !11
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds ptr, ptr %211, i64 %213
  %215 = load ptr, ptr %214, align 8, !tbaa !5
  %216 = load i32, ptr %19, align 4, !tbaa !11
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds double, ptr %215, i64 %217
  store double %210, ptr %218, align 8, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  %219 = load ptr, ptr %8, align 8, !tbaa !5
  %220 = load ptr, ptr %10, align 8, !tbaa !5
  %221 = load i32, ptr %7, align 4, !tbaa !11
  %222 = load i32, ptr %7, align 4, !tbaa !11
  %223 = load i32, ptr %7, align 4, !tbaa !11
  %224 = call noundef ptr @_ZN5gomea5utils26matrixMatrixMultiplicationEPPdS2_iii(ptr noundef %219, ptr noundef %220, i32 noundef %221, i32 noundef %222, i32 noundef %223)
  store ptr %224, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #7
  store i32 0, ptr %23, align 4, !tbaa !11
  br label %225

225:                                              ; preds = %258, %181
  %226 = load i32, ptr %23, align 4, !tbaa !11
  %227 = load i32, ptr %7, align 4, !tbaa !11
  %228 = icmp slt i32 %226, %227
  br i1 %228, label %230, label %229

229:                                              ; preds = %225
  store i32 26, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #7
  br label %261

230:                                              ; preds = %225
  call void @llvm.lifetime.start.p0(i64 4, ptr %24) #7
  store i32 0, ptr %24, align 4, !tbaa !11
  br label %231

231:                                              ; preds = %254, %230
  %232 = load i32, ptr %24, align 4, !tbaa !11
  %233 = load i32, ptr %7, align 4, !tbaa !11
  %234 = icmp slt i32 %232, %233
  br i1 %234, label %236, label %235

235:                                              ; preds = %231
  store i32 29, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %24) #7
  br label %257

236:                                              ; preds = %231
  %237 = load ptr, ptr %22, align 8, !tbaa !5
  %238 = load i32, ptr %23, align 4, !tbaa !11
  %239 = sext i32 %238 to i64
  %240 = getelementptr inbounds ptr, ptr %237, i64 %239
  %241 = load ptr, ptr %240, align 8, !tbaa !5
  %242 = load i32, ptr %24, align 4, !tbaa !11
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds double, ptr %241, i64 %243
  %245 = load double, ptr %244, align 8, !tbaa !9
  %246 = load ptr, ptr %10, align 8, !tbaa !5
  %247 = load i32, ptr %23, align 4, !tbaa !11
  %248 = sext i32 %247 to i64
  %249 = getelementptr inbounds ptr, ptr %246, i64 %248
  %250 = load ptr, ptr %249, align 8, !tbaa !5
  %251 = load i32, ptr %24, align 4, !tbaa !11
  %252 = sext i32 %251 to i64
  %253 = getelementptr inbounds double, ptr %250, i64 %252
  store double %245, ptr %253, align 8, !tbaa !9
  br label %254

254:                                              ; preds = %236
  %255 = load i32, ptr %24, align 4, !tbaa !11
  %256 = add nsw i32 %255, 1
  store i32 %256, ptr %24, align 4, !tbaa !11
  br label %231, !llvm.loop !20

257:                                              ; preds = %235
  br label %258

258:                                              ; preds = %257
  %259 = load i32, ptr %23, align 4, !tbaa !11
  %260 = add nsw i32 %259, 1
  store i32 %260, ptr %23, align 4, !tbaa !11
  br label %225, !llvm.loop !21

261:                                              ; preds = %229
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #7
  store i32 0, ptr %25, align 4, !tbaa !11
  br label %262

262:                                              ; preds = %276, %261
  %263 = load i32, ptr %25, align 4, !tbaa !11
  %264 = load i32, ptr %7, align 4, !tbaa !11
  %265 = icmp slt i32 %263, %264
  br i1 %265, label %267, label %266

266:                                              ; preds = %262
  store i32 32, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #7
  br label %279

267:                                              ; preds = %262
  %268 = load ptr, ptr %22, align 8, !tbaa !5
  %269 = load i32, ptr %25, align 4, !tbaa !11
  %270 = sext i32 %269 to i64
  %271 = getelementptr inbounds ptr, ptr %268, i64 %270
  %272 = load ptr, ptr %271, align 8, !tbaa !5
  %273 = icmp eq ptr %272, null
  br i1 %273, label %275, label %274

274:                                              ; preds = %267
  call void @_ZdaPv(ptr noundef %272) #9
  br label %275

275:                                              ; preds = %274, %267
  br label %276

276:                                              ; preds = %275
  %277 = load i32, ptr %25, align 4, !tbaa !11
  %278 = add nsw i32 %277, 1
  store i32 %278, ptr %25, align 4, !tbaa !11
  br label %262, !llvm.loop !22

279:                                              ; preds = %266
  %280 = load ptr, ptr %22, align 8, !tbaa !5
  %281 = icmp eq ptr %280, null
  br i1 %281, label %283, label %282

282:                                              ; preds = %279
  call void @_ZdaPv(ptr noundef %280) #9
  br label %283

283:                                              ; preds = %282, %279
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  br label %284

284:                                              ; preds = %283
  %285 = load i32, ptr %19, align 4, !tbaa !11
  %286 = add nsw i32 %285, 1
  store i32 %286, ptr %19, align 4, !tbaa !11
  br label %140, !llvm.loop !23

287:                                              ; preds = %144
  br label %288

288:                                              ; preds = %287
  %289 = load i32, ptr %18, align 4, !tbaa !11
  %290 = add nsw i32 %289, 1
  store i32 %290, ptr %18, align 4, !tbaa !11
  br label %131, !llvm.loop !24

291:                                              ; preds = %136
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #7
  store i32 0, ptr %26, align 4, !tbaa !11
  br label %292

292:                                              ; preds = %306, %291
  %293 = load i32, ptr %26, align 4, !tbaa !11
  %294 = load i32, ptr %7, align 4, !tbaa !11
  %295 = icmp slt i32 %293, %294
  br i1 %295, label %297, label %296

296:                                              ; preds = %292
  store i32 35, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #7
  br label %309

297:                                              ; preds = %292
  %298 = load ptr, ptr %8, align 8, !tbaa !5
  %299 = load i32, ptr %26, align 4, !tbaa !11
  %300 = sext i32 %299 to i64
  %301 = getelementptr inbounds ptr, ptr %298, i64 %300
  %302 = load ptr, ptr %301, align 8, !tbaa !5
  %303 = icmp eq ptr %302, null
  br i1 %303, label %305, label %304

304:                                              ; preds = %297
  call void @_ZdaPv(ptr noundef %302) #9
  br label %305

305:                                              ; preds = %304, %297
  br label %306

306:                                              ; preds = %305
  %307 = load i32, ptr %26, align 4, !tbaa !11
  %308 = add nsw i32 %307, 1
  store i32 %308, ptr %26, align 4, !tbaa !11
  br label %292, !llvm.loop !25

309:                                              ; preds = %296
  %310 = load ptr, ptr %8, align 8, !tbaa !5
  %311 = icmp eq ptr %310, null
  br i1 %311, label %313, label %312

312:                                              ; preds = %309
  call void @_ZdaPv(ptr noundef %310) #9
  br label %313

313:                                              ; preds = %312, %309
  %314 = load ptr, ptr %10, align 8, !tbaa !5
  store ptr %314, ptr %4, align 8
  store i32 1, ptr %13, align 4
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  br label %315

315:                                              ; preds = %313, %30
  %316 = load ptr, ptr %4, align 8
  ret ptr %316
}

; Function Attrs: nounwind
declare double @cos(double noundef) #5

; Function Attrs: nounwind
declare double @sin(double noundef) #5

declare noundef ptr @_ZN5gomea5utils26matrixMatrixMultiplicationEPPdS2_iii(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) #6

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

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

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


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

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

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

; Function Attrs: mustprogress uwtable
define dso_local noundef ptr @_ZN5gomea7fitness9fitness_tIdE33initializeObjectiveRotationMatrixEdi(ptr nocapture noundef nonnull readnone align 8 dereferenceable(280) %0, double noundef %1, i32 noundef %2) local_unnamed_addr #2 align 2 {
  %4 = fcmp oeq double %1, 0.000000e+00
  br i1 %4, label %107, label %5

5:                                                ; preds = %3
  %6 = zext i32 %2 to i64
  %7 = icmp slt i32 %2, 0
  %8 = shl nuw nsw i64 %6, 3
  %9 = select i1 %7, i64 -1, i64 %8
  %10 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %9) #6
  %11 = icmp sgt i32 %2, 0
  br i1 %11, label %.lr.ph, label %._crit_edge.thread

._crit_edge.thread:                               ; preds = %5
  %12 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %9) #6
  br label %._crit_edge127

._crit_edge:                                      ; preds = %.lr.ph
  %13 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %9) #6
  br i1 %11, label %.lr.ph122, label %._crit_edge127

.lr.ph:                                           ; preds = %5, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %5 ]
  %14 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %9) #6
  %15 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv
  store ptr %14, ptr %15, align 8, !tbaa !5
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %6
  br i1 %exitcond.not, label %._crit_edge, label %.lr.ph, !llvm.loop !9

.preheader118:                                    ; preds = %.lr.ph122
  br i1 %11, label %.preheader117.us.preheader, label %._crit_edge127

.preheader117.us.preheader:                       ; preds = %.preheader118
  %xtraiter = and i64 %6, 3
  %16 = icmp ult i32 %2, 4
  br i1 %16, label %._crit_edge127.loopexit.unr-lcssa, label %.preheader117.us.preheader.new

.preheader117.us.preheader.new:                   ; preds = %.preheader117.us.preheader
  %unroll_iter = and i64 %6, 2147483644
  br label %.preheader117.us

.preheader117.us:                                 ; preds = %.preheader117.us, %.preheader117.us.preheader.new
  %indvars.iv156 = phi i64 [ 0, %.preheader117.us.preheader.new ], [ %indvars.iv.next157.3, %.preheader117.us ]
  %niter = phi i64 [ 0, %.preheader117.us.preheader.new ], [ %niter.next.3, %.preheader117.us ]
  %17 = getelementptr inbounds ptr, ptr %13, i64 %indvars.iv156
  %18 = load ptr, ptr %17, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %18, i8 0, i64 %8, i1 false), !tbaa !11
  %19 = getelementptr inbounds double, ptr %18, i64 %indvars.iv156
  store double 1.000000e+00, ptr %19, align 8, !tbaa !11
  %indvars.iv.next157 = or disjoint i64 %indvars.iv156, 1
  %20 = getelementptr inbounds ptr, ptr %13, i64 %indvars.iv.next157
  %21 = load ptr, ptr %20, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %21, i8 0, i64 %8, i1 false), !tbaa !11
  %22 = getelementptr inbounds double, ptr %21, i64 %indvars.iv.next157
  store double 1.000000e+00, ptr %22, align 8, !tbaa !11
  %indvars.iv.next157.1 = or disjoint i64 %indvars.iv156, 2
  %23 = getelementptr inbounds ptr, ptr %13, i64 %indvars.iv.next157.1
  %24 = load ptr, ptr %23, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %24, i8 0, i64 %8, i1 false), !tbaa !11
  %25 = getelementptr inbounds double, ptr %24, i64 %indvars.iv.next157.1
  store double 1.000000e+00, ptr %25, align 8, !tbaa !11
  %indvars.iv.next157.2 = or disjoint i64 %indvars.iv156, 3
  %26 = getelementptr inbounds ptr, ptr %13, i64 %indvars.iv.next157.2
  %27 = load ptr, ptr %26, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %27, i8 0, i64 %8, i1 false), !tbaa !11
  %28 = getelementptr inbounds double, ptr %27, i64 %indvars.iv.next157.2
  store double 1.000000e+00, ptr %28, align 8, !tbaa !11
  %indvars.iv.next157.3 = add nuw nsw i64 %indvars.iv156, 4
  %niter.next.3 = add i64 %niter, 4
  %niter.ncmp.3 = icmp eq i64 %niter.next.3, %unroll_iter
  br i1 %niter.ncmp.3, label %._crit_edge127.loopexit.unr-lcssa, label %.preheader117.us, !llvm.loop !13

.lr.ph122:                                        ; preds = %._crit_edge, %.lr.ph122
  %indvars.iv148 = phi i64 [ %indvars.iv.next149, %.lr.ph122 ], [ 0, %._crit_edge ]
  %29 = tail call noalias noundef nonnull ptr @_Znam(i64 noundef %9) #6
  %30 = getelementptr inbounds ptr, ptr %13, i64 %indvars.iv148
  store ptr %29, ptr %30, align 8, !tbaa !5
  %indvars.iv.next149 = add nuw nsw i64 %indvars.iv148, 1
  %exitcond152.not = icmp eq i64 %indvars.iv.next149, %6
  br i1 %exitcond152.not, label %.preheader118, label %.lr.ph122, !llvm.loop !14

._crit_edge127.loopexit.unr-lcssa:                ; preds = %.preheader117.us, %.preheader117.us.preheader
  %indvars.iv156.unr = phi i64 [ 0, %.preheader117.us.preheader ], [ %indvars.iv.next157.3, %.preheader117.us ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge127, label %.preheader117.us.epil

.preheader117.us.epil:                            ; preds = %._crit_edge127.loopexit.unr-lcssa, %.preheader117.us.epil
  %indvars.iv156.epil = phi i64 [ %indvars.iv.next157.epil, %.preheader117.us.epil ], [ %indvars.iv156.unr, %._crit_edge127.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.preheader117.us.epil ], [ 0, %._crit_edge127.loopexit.unr-lcssa ]
  %31 = getelementptr inbounds ptr, ptr %13, i64 %indvars.iv156.epil
  %32 = load ptr, ptr %31, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %32, i8 0, i64 %8, i1 false), !tbaa !11
  %33 = getelementptr inbounds double, ptr %32, i64 %indvars.iv156.epil
  store double 1.000000e+00, ptr %33, align 8, !tbaa !11
  %indvars.iv.next157.epil = add nuw nsw i64 %indvars.iv156.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge127, label %.preheader117.us.epil, !llvm.loop !15

._crit_edge127:                                   ; preds = %._crit_edge127.loopexit.unr-lcssa, %.preheader117.us.epil, %._crit_edge, %._crit_edge.thread, %.preheader118
  %34 = phi ptr [ %13, %.preheader118 ], [ %13, %._crit_edge ], [ %12, %._crit_edge.thread ], [ %13, %.preheader117.us.epil ], [ %13, %._crit_edge127.loopexit.unr-lcssa ]
  %35 = fdiv double %1, 1.800000e+02
  %36 = fmul double %35, 0x400921FB54442D18
  %37 = tail call double @cos(double noundef %36) #7
  %38 = tail call double @sin(double noundef %36) #7
  %39 = icmp sgt i32 %2, 1
  br i1 %39, label %.lr.ph143, label %.preheader

.lr.ph143:                                        ; preds = %._crit_edge127
  %40 = add nsw i32 %2, -1
  %41 = fneg double %38
  %wide.trip.count194 = zext nneg i32 %40 to i64
  %xtraiter204 = and i64 %6, 3
  %42 = icmp ult i32 %2, 4
  %unroll_iter207 = and i64 %6, 2147483644
  %lcmp.mod206.not = icmp eq i64 %xtraiter204, 0
  %min.iters.check = icmp ult i32 %2, 4
  %n.vec = and i64 %6, 2147483644
  %cmp.n = icmp eq i64 %n.vec, %6
  %xtraiter209 = and i64 %6, 3
  %lcmp.mod210.not = icmp eq i64 %xtraiter209, 0
  br label %.preheader116.lr.ph

.loopexit:                                        ; preds = %101
  %indvars.iv.next185 = add nuw nsw i64 %indvars.iv184, 1
  %exitcond195.not = icmp eq i64 %indvars.iv.next192, %wide.trip.count194
  br i1 %exitcond195.not, label %.preheader, label %.preheader116.lr.ph, !llvm.loop !17

.preheader:                                       ; preds = %.loopexit, %._crit_edge127
  br i1 %11, label %.lr.ph145, label %._crit_edge146

.preheader116.lr.ph:                              ; preds = %.loopexit, %.lr.ph143
  %indvars.iv191 = phi i64 [ 0, %.lr.ph143 ], [ %indvars.iv.next192, %.loopexit ]
  %indvars.iv184 = phi i64 [ 1, %.lr.ph143 ], [ %indvars.iv.next185, %.loopexit ]
  %indvars.iv.next192 = add nuw nsw i64 %indvars.iv191, 1
  %43 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv191
  br label %.preheader114.us.preheader

.preheader114.us.preheader:                       ; preds = %101, %.preheader116.lr.ph
  %indvars.iv186 = phi i64 [ %indvars.iv184, %.preheader116.lr.ph ], [ %indvars.iv.next187, %101 ]
  br i1 %42, label %.preheader113.us.preheader.unr-lcssa, label %.preheader114.us

.preheader114.us:                                 ; preds = %.preheader114.us.preheader, %.preheader114.us
  %indvars.iv164 = phi i64 [ %indvars.iv.next165.3, %.preheader114.us ], [ 0, %.preheader114.us.preheader ]
  %niter208 = phi i64 [ %niter208.next.3, %.preheader114.us ], [ 0, %.preheader114.us.preheader ]
  %44 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv164
  %45 = load ptr, ptr %44, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %45, i8 0, i64 %8, i1 false), !tbaa !11
  %46 = getelementptr inbounds double, ptr %45, i64 %indvars.iv164
  store double 1.000000e+00, ptr %46, align 8, !tbaa !11
  %indvars.iv.next165 = or disjoint i64 %indvars.iv164, 1
  %47 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv.next165
  %48 = load ptr, ptr %47, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %48, i8 0, i64 %8, i1 false), !tbaa !11
  %49 = getelementptr inbounds double, ptr %48, i64 %indvars.iv.next165
  store double 1.000000e+00, ptr %49, align 8, !tbaa !11
  %indvars.iv.next165.1 = or disjoint i64 %indvars.iv164, 2
  %50 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv.next165.1
  %51 = load ptr, ptr %50, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %51, i8 0, i64 %8, i1 false), !tbaa !11
  %52 = getelementptr inbounds double, ptr %51, i64 %indvars.iv.next165.1
  store double 1.000000e+00, ptr %52, align 8, !tbaa !11
  %indvars.iv.next165.2 = or disjoint i64 %indvars.iv164, 3
  %53 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv.next165.2
  %54 = load ptr, ptr %53, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %54, i8 0, i64 %8, i1 false), !tbaa !11
  %55 = getelementptr inbounds double, ptr %54, i64 %indvars.iv.next165.2
  store double 1.000000e+00, ptr %55, align 8, !tbaa !11
  %indvars.iv.next165.3 = add nuw nsw i64 %indvars.iv164, 4
  %niter208.next.3 = add i64 %niter208, 4
  %niter208.ncmp.3 = icmp eq i64 %niter208.next.3, %unroll_iter207
  br i1 %niter208.ncmp.3, label %.preheader113.us.preheader.unr-lcssa, label %.preheader114.us, !llvm.loop !18

.preheader113.us.preheader.unr-lcssa:             ; preds = %.preheader114.us, %.preheader114.us.preheader
  %indvars.iv164.unr = phi i64 [ 0, %.preheader114.us.preheader ], [ %indvars.iv.next165.3, %.preheader114.us ]
  br i1 %lcmp.mod206.not, label %.preheader113.us.preheader, label %.preheader114.us.epil

.preheader114.us.epil:                            ; preds = %.preheader113.us.preheader.unr-lcssa, %.preheader114.us.epil
  %indvars.iv164.epil = phi i64 [ %indvars.iv.next165.epil, %.preheader114.us.epil ], [ %indvars.iv164.unr, %.preheader113.us.preheader.unr-lcssa ]
  %epil.iter205 = phi i64 [ %epil.iter205.next, %.preheader114.us.epil ], [ 0, %.preheader113.us.preheader.unr-lcssa ]
  %56 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv164.epil
  %57 = load ptr, ptr %56, align 8, !tbaa !5
  tail call void @llvm.memset.p0.i64(ptr align 8 %57, i8 0, i64 %8, i1 false), !tbaa !11
  %58 = getelementptr inbounds double, ptr %57, i64 %indvars.iv164.epil
  store double 1.000000e+00, ptr %58, align 8, !tbaa !11
  %indvars.iv.next165.epil = add nuw nsw i64 %indvars.iv164.epil, 1
  %epil.iter205.next = add i64 %epil.iter205, 1
  %epil.iter205.cmp.not = icmp eq i64 %epil.iter205.next, %xtraiter204
  br i1 %epil.iter205.cmp.not, label %.preheader113.us.preheader, label %.preheader114.us.epil, !llvm.loop !19

.preheader113.us.preheader:                       ; preds = %.preheader114.us.epil, %.preheader113.us.preheader.unr-lcssa
  %59 = load ptr, ptr %43, align 8, !tbaa !5
  %60 = getelementptr inbounds double, ptr %59, i64 %indvars.iv191
  store double %37, ptr %60, align 8, !tbaa !11
  %61 = getelementptr inbounds double, ptr %59, i64 %indvars.iv186
  store double %41, ptr %61, align 8, !tbaa !11
  %62 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv186
  %63 = load ptr, ptr %62, align 8, !tbaa !5
  %64 = getelementptr inbounds double, ptr %63, i64 %indvars.iv191
  store double %38, ptr %64, align 8, !tbaa !11
  %65 = getelementptr inbounds double, ptr %63, i64 %indvars.iv186
  store double %37, ptr %65, align 8, !tbaa !11
  %66 = tail call noundef ptr @_ZN5gomea5utils26matrixMatrixMultiplicationEPPdS2_iii(ptr noundef nonnull %10, ptr noundef nonnull %34, i32 noundef %2, i32 noundef %2, i32 noundef %2)
  br label %.preheader113.us

.preheader113.us:                                 ; preds = %.preheader113.us.preheader, %._crit_edge135.us
  %indvars.iv174 = phi i64 [ 0, %.preheader113.us.preheader ], [ %indvars.iv.next175, %._crit_edge135.us ]
  %67 = getelementptr inbounds ptr, ptr %66, i64 %indvars.iv174
  %68 = load ptr, ptr %67, align 8, !tbaa !5
  %69 = getelementptr inbounds ptr, ptr %34, i64 %indvars.iv174
  %70 = load ptr, ptr %69, align 8, !tbaa !5
  %71 = ptrtoint ptr %70 to i64
  %72 = ptrtoint ptr %68 to i64
  %73 = sub i64 %71, %72
  %diff.check = icmp ult i64 %73, 32
  %or.cond = select i1 %min.iters.check, i1 true, i1 %diff.check
  br i1 %or.cond, label %scalar.ph.preheader, label %vector.body

vector.body:                                      ; preds = %.preheader113.us, %vector.body
  %index = phi i64 [ %index.next, %vector.body ], [ 0, %.preheader113.us ]
  %74 = getelementptr inbounds double, ptr %68, i64 %index
  %75 = getelementptr inbounds i8, ptr %74, i64 16
  %wide.load = load <2 x double>, ptr %74, align 8, !tbaa !11
  %wide.load201 = load <2 x double>, ptr %75, align 8, !tbaa !11
  %76 = getelementptr inbounds double, ptr %70, i64 %index
  %77 = getelementptr inbounds i8, ptr %76, i64 16
  store <2 x double> %wide.load, ptr %76, align 8, !tbaa !11
  store <2 x double> %wide.load201, ptr %77, align 8, !tbaa !11
  %index.next = add nuw i64 %index, 4
  %78 = icmp eq i64 %index.next, %n.vec
  br i1 %78, label %middle.block, label %vector.body, !llvm.loop !20

middle.block:                                     ; preds = %vector.body
  br i1 %cmp.n, label %._crit_edge135.us, label %scalar.ph.preheader

scalar.ph.preheader:                              ; preds = %middle.block, %.preheader113.us
  %indvars.iv169.ph = phi i64 [ 0, %.preheader113.us ], [ %n.vec, %middle.block ]
  br i1 %lcmp.mod210.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol

scalar.ph.prol:                                   ; preds = %scalar.ph.preheader, %scalar.ph.prol
  %indvars.iv169.prol = phi i64 [ %indvars.iv.next170.prol, %scalar.ph.prol ], [ %indvars.iv169.ph, %scalar.ph.preheader ]
  %prol.iter = phi i64 [ %prol.iter.next, %scalar.ph.prol ], [ 0, %scalar.ph.preheader ]
  %79 = getelementptr inbounds double, ptr %68, i64 %indvars.iv169.prol
  %80 = load double, ptr %79, align 8, !tbaa !11
  %81 = getelementptr inbounds double, ptr %70, i64 %indvars.iv169.prol
  store double %80, ptr %81, align 8, !tbaa !11
  %indvars.iv.next170.prol = add nuw nsw i64 %indvars.iv169.prol, 1
  %prol.iter.next = add i64 %prol.iter, 1
  %prol.iter.cmp.not = icmp eq i64 %prol.iter.next, %xtraiter209
  br i1 %prol.iter.cmp.not, label %scalar.ph.prol.loopexit, label %scalar.ph.prol, !llvm.loop !23

scalar.ph.prol.loopexit:                          ; preds = %scalar.ph.prol, %scalar.ph.preheader
  %indvars.iv169.unr = phi i64 [ %indvars.iv169.ph, %scalar.ph.preheader ], [ %indvars.iv.next170.prol, %scalar.ph.prol ]
  %82 = sub nsw i64 %indvars.iv169.ph, %6
  %83 = icmp ugt i64 %82, -4
  br i1 %83, label %._crit_edge135.us, label %scalar.ph

scalar.ph:                                        ; preds = %scalar.ph.prol.loopexit, %scalar.ph
  %indvars.iv169 = phi i64 [ %indvars.iv.next170.3, %scalar.ph ], [ %indvars.iv169.unr, %scalar.ph.prol.loopexit ]
  %84 = getelementptr inbounds double, ptr %68, i64 %indvars.iv169
  %85 = load double, ptr %84, align 8, !tbaa !11
  %86 = getelementptr inbounds double, ptr %70, i64 %indvars.iv169
  store double %85, ptr %86, align 8, !tbaa !11
  %indvars.iv.next170 = add nuw nsw i64 %indvars.iv169, 1
  %87 = getelementptr inbounds double, ptr %68, i64 %indvars.iv.next170
  %88 = load double, ptr %87, align 8, !tbaa !11
  %89 = getelementptr inbounds double, ptr %70, i64 %indvars.iv.next170
  store double %88, ptr %89, align 8, !tbaa !11
  %indvars.iv.next170.1 = add nuw nsw i64 %indvars.iv169, 2
  %90 = getelementptr inbounds double, ptr %68, i64 %indvars.iv.next170.1
  %91 = load double, ptr %90, align 8, !tbaa !11
  %92 = getelementptr inbounds double, ptr %70, i64 %indvars.iv.next170.1
  store double %91, ptr %92, align 8, !tbaa !11
  %indvars.iv.next170.2 = add nuw nsw i64 %indvars.iv169, 3
  %93 = getelementptr inbounds double, ptr %68, i64 %indvars.iv.next170.2
  %94 = load double, ptr %93, align 8, !tbaa !11
  %95 = getelementptr inbounds double, ptr %70, i64 %indvars.iv.next170.2
  store double %94, ptr %95, align 8, !tbaa !11
  %indvars.iv.next170.3 = add nuw nsw i64 %indvars.iv169, 4
  %exitcond173.not.3 = icmp eq i64 %indvars.iv.next170.3, %6
  br i1 %exitcond173.not.3, label %._crit_edge135.us, label %scalar.ph, !llvm.loop !24

._crit_edge135.us:                                ; preds = %scalar.ph.prol.loopexit, %scalar.ph, %middle.block
  %indvars.iv.next175 = add nuw nsw i64 %indvars.iv174, 1
  %exitcond178.not = icmp eq i64 %indvars.iv.next175, %6
  br i1 %exitcond178.not, label %.lr.ph138, label %.preheader113.us, !llvm.loop !25

.lr.ph138:                                        ; preds = %._crit_edge135.us, %100
  %indvars.iv179 = phi i64 [ %indvars.iv.next180, %100 ], [ 0, %._crit_edge135.us ]
  %96 = getelementptr inbounds ptr, ptr %66, i64 %indvars.iv179
  %97 = load ptr, ptr %96, align 8, !tbaa !5
  %98 = icmp eq ptr %97, null
  br i1 %98, label %100, label %99

99:                                               ; preds = %.lr.ph138
  tail call void @_ZdaPv(ptr noundef nonnull %97) #8
  br label %100

100:                                              ; preds = %.lr.ph138, %99
  %indvars.iv.next180 = add nuw nsw i64 %indvars.iv179, 1
  %exitcond183.not = icmp eq i64 %indvars.iv.next180, %6
  br i1 %exitcond183.not, label %101, label %.lr.ph138, !llvm.loop !26

101:                                              ; preds = %100
  tail call void @_ZdaPv(ptr noundef nonnull %66) #8
  %indvars.iv.next187 = add nuw nsw i64 %indvars.iv186, 1
  %exitcond190.not = icmp eq i64 %indvars.iv.next187, %6
  br i1 %exitcond190.not, label %.loopexit, label %.preheader114.us.preheader, !llvm.loop !27

.lr.ph145:                                        ; preds = %.preheader, %106
  %indvars.iv196 = phi i64 [ %indvars.iv.next197, %106 ], [ 0, %.preheader ]
  %102 = getelementptr inbounds ptr, ptr %10, i64 %indvars.iv196
  %103 = load ptr, ptr %102, align 8, !tbaa !5
  %104 = icmp eq ptr %103, null
  br i1 %104, label %106, label %105

105:                                              ; preds = %.lr.ph145
  tail call void @_ZdaPv(ptr noundef nonnull %103) #8
  br label %106

106:                                              ; preds = %.lr.ph145, %105
  %indvars.iv.next197 = add nuw nsw i64 %indvars.iv196, 1
  %exitcond200.not = icmp eq i64 %indvars.iv.next197, %6
  br i1 %exitcond200.not, label %._crit_edge146, label %.lr.ph145, !llvm.loop !28

._crit_edge146:                                   ; preds = %106, %.preheader
  tail call void @_ZdaPv(ptr noundef nonnull %10) #8
  br label %107

107:                                              ; preds = %3, %._crit_edge146
  %.099 = phi ptr [ %34, %._crit_edge146 ], [ null, %3 ]
  ret ptr %.099
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @cos(double noundef) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @sin(double noundef) local_unnamed_addr #3

declare noundef ptr @_ZN5gomea5utils26matrixMatrixMultiplicationEPPdS2_iii(ptr noundef, ptr noundef, i32 noundef, i32 noundef, i32 noundef) local_unnamed_addr #4

; Function Attrs: nocallback nofree nounwind willreturn memory(argmem: write)
declare void @llvm.memset.p0.i64(ptr nocapture writeonly, i8, i64, i1 immarg) #5

attributes #0 = { nobuiltin allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { nobuiltin nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { mustprogress 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 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nounwind willreturn memory(argmem: write) }
attributes #6 = { builtin allocsize(0) }
attributes #7 = { nounwind }
attributes #8 = { builtin nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"any pointer", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = distinct !{!9, !10}
!10 = !{!"llvm.loop.mustprogress"}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !10}
!14 = distinct !{!14, !10}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.unroll.disable"}
!17 = distinct !{!17, !10}
!18 = distinct !{!18, !10}
!19 = distinct !{!19, !16}
!20 = distinct !{!20, !10, !21, !22}
!21 = !{!"llvm.loop.isvectorized", i32 1}
!22 = !{!"llvm.loop.unroll.runtime.disable"}
!23 = distinct !{!23, !16}
!24 = distinct !{!24, !10, !21}
!25 = distinct !{!25, !10}
!26 = distinct !{!26, !10}
!27 = distinct !{!27, !10}
!28 = distinct !{!28, !10}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopIdiomRecognizePass,LoopInstSimplifyPass,LoopLoadEliminationPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,LoopVectorizePass,PostOrderFunctionAttrsPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass