; LLVM IR from tryingfly/nabo :: nabo_mujoco/main.ll (Z7runCtrlR7mjData_)

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

%"struct.Nabo::inputStruct" = type { i32, double, double, double, [3 x double], [3 x double], [3 x double], [3 x double], [3 x double], [12 x double], [12 x double], [12 x double] }
%"struct.Nabo::outputStruct" = type { [12 x double], [12 x double], [12 x double] }
%struct.mjData_ = type { i64, i64, i32, i64, i64, i64, i64, [128 x i64], i64, i32, i32, [8 x %struct.mjWarningStat_], [16 x %struct.mjTimerStat_], [4000 x %struct.mjSolverStat_], i32, [20 x i32], [20 x i32], [2 x double], i32, i32, i32, i32, i32, i32, i32, double, [2 x double], ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, i64 }
%struct.mjWarningStat_ = type { i32, i32 }
%struct.mjTimerStat_ = type { double, i32 }
%struct.mjSolverStat_ = type { double, double, double, i32, i32, i32, i32 }

@dt = external dso_local global double, align 8
@in = external dso_local global %"struct.Nabo::inputStruct", align 8
@out = external dso_local global %"struct.Nabo::outputStruct", align 8
@floatBaseFlag = external dso_local global i8, align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7runCtrlR7mjData_(ptr noundef nonnull align 8 dereferenceable(162728) %0) #0 {
  %2 = alloca ptr, align 8
  %3 = alloca ptr, align 8
  %4 = alloca i32, align 4
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  store ptr %0, ptr %2, align 8, !tbaa !5
  %8 = load ptr, ptr %2, align 8, !tbaa !5
  %9 = getelementptr inbounds %struct.mjData_, ptr %8, i32 0, i32 25
  %10 = load double, ptr %9, align 8, !tbaa !9
  %11 = load double, ptr @dt, align 8, !tbaa !14
  %12 = fdiv double %10, %11
  %13 = fptosi double %12 to i32
  store i32 %13, ptr @in, align 8, !tbaa !15
  %14 = load i8, ptr @floatBaseFlag, align 1, !tbaa !17, !range !19, !noundef !20
  %15 = trunc i8 %14 to i1
  br i1 %15, label %16, label %193

16:                                               ; preds = %1
  call void @llvm.lifetime.start.p0(i64 8, ptr %3) #5
  %17 = load ptr, ptr %2, align 8, !tbaa !5
  %18 = getelementptr inbounds %struct.mjData_, ptr %17, i32 0, i32 29
  %19 = load ptr, ptr %18, align 8, !tbaa !21
  %20 = getelementptr inbounds double, ptr %19, i64 3
  store ptr %20, ptr %3, align 8, !tbaa !5
  %21 = load ptr, ptr %3, align 8, !tbaa !5
  %22 = getelementptr inbounds double, ptr %21, i64 0
  %23 = load double, ptr %22, align 8, !tbaa !14
  %24 = load ptr, ptr %3, align 8, !tbaa !5
  %25 = getelementptr inbounds double, ptr %24, i64 1
  %26 = load double, ptr %25, align 8, !tbaa !14
  %27 = load ptr, ptr %3, align 8, !tbaa !5
  %28 = getelementptr inbounds double, ptr %27, i64 2
  %29 = load double, ptr %28, align 8, !tbaa !14
  %30 = load ptr, ptr %3, align 8, !tbaa !5
  %31 = getelementptr inbounds double, ptr %30, i64 3
  %32 = load double, ptr %31, align 8, !tbaa !14
  %33 = fmul double %29, %32
  %34 = call double @llvm.fmuladd.f64(double %23, double %26, double %33)
  %35 = fmul double 2.000000e+00, %34
  %36 = load ptr, ptr %3, align 8, !tbaa !5
  %37 = getelementptr inbounds double, ptr %36, i64 1
  %38 = load double, ptr %37, align 8, !tbaa !14
  %39 = load ptr, ptr %3, align 8, !tbaa !5
  %40 = getelementptr inbounds double, ptr %39, i64 1
  %41 = load double, ptr %40, align 8, !tbaa !14
  %42 = load ptr, ptr %3, align 8, !tbaa !5
  %43 = getelementptr inbounds double, ptr %42, i64 2
  %44 = load double, ptr %43, align 8, !tbaa !14
  %45 = load ptr, ptr %3, align 8, !tbaa !5
  %46 = getelementptr inbounds double, ptr %45, i64 2
  %47 = load double, ptr %46, align 8, !tbaa !14
  %48 = fmul double %44, %47
  %49 = call double @llvm.fmuladd.f64(double %38, double %41, double %48)
  %50 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %49, double 1.000000e+00)
  %51 = call double @atan2(double noundef %35, double noundef %50) #5
  store double %51, ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 6), align 8, !tbaa !14
  %52 = load ptr, ptr %3, align 8, !tbaa !5
  %53 = getelementptr inbounds double, ptr %52, i64 0
  %54 = load double, ptr %53, align 8, !tbaa !14
  %55 = load ptr, ptr %3, align 8, !tbaa !5
  %56 = getelementptr inbounds double, ptr %55, i64 2
  %57 = load double, ptr %56, align 8, !tbaa !14
  %58 = load ptr, ptr %3, align 8, !tbaa !5
  %59 = getelementptr inbounds double, ptr %58, i64 3
  %60 = load double, ptr %59, align 8, !tbaa !14
  %61 = load ptr, ptr %3, align 8, !tbaa !5
  %62 = getelementptr inbounds double, ptr %61, i64 1
  %63 = load double, ptr %62, align 8, !tbaa !14
  %64 = fmul double %60, %63
  %65 = fneg double %64
  %66 = call double @llvm.fmuladd.f64(double %54, double %57, double %65)
  %67 = fmul double 2.000000e+00, %66
  %68 = call double @asin(double noundef %67) #5
  store double %68, ptr getelementptr inbounds ([3 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 6), i64 0, i64 1), align 8, !tbaa !14
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds double, ptr %69, i64 0
  %71 = load double, ptr %70, align 8, !tbaa !14
  %72 = load ptr, ptr %3, align 8, !tbaa !5
  %73 = getelementptr inbounds double, ptr %72, i64 3
  %74 = load double, ptr %73, align 8, !tbaa !14
  %75 = load ptr, ptr %3, align 8, !tbaa !5
  %76 = getelementptr inbounds double, ptr %75, i64 1
  %77 = load double, ptr %76, align 8, !tbaa !14
  %78 = load ptr, ptr %3, align 8, !tbaa !5
  %79 = getelementptr inbounds double, ptr %78, i64 2
  %80 = load double, ptr %79, align 8, !tbaa !14
  %81 = fmul double %77, %80
  %82 = call double @llvm.fmuladd.f64(double %71, double %74, double %81)
  %83 = fmul double 2.000000e+00, %82
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds double, ptr %84, i64 2
  %86 = load double, ptr %85, align 8, !tbaa !14
  %87 = load ptr, ptr %3, align 8, !tbaa !5
  %88 = getelementptr inbounds double, ptr %87, i64 2
  %89 = load double, ptr %88, align 8, !tbaa !14
  %90 = load ptr, ptr %3, align 8, !tbaa !5
  %91 = getelementptr inbounds double, ptr %90, i64 3
  %92 = load double, ptr %91, align 8, !tbaa !14
  %93 = load ptr, ptr %3, align 8, !tbaa !5
  %94 = getelementptr inbounds double, ptr %93, i64 3
  %95 = load double, ptr %94, align 8, !tbaa !14
  %96 = fmul double %92, %95
  %97 = call double @llvm.fmuladd.f64(double %86, double %89, double %96)
  %98 = call double @llvm.fmuladd.f64(double -2.000000e+00, double %97, double 1.000000e+00)
  %99 = call double @atan2(double noundef %83, double noundef %98) #5
  store double %99, ptr getelementptr inbounds ([3 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 6), i64 0, i64 2), align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %4) #5
  store i32 0, ptr %4, align 4, !tbaa !22
  br label %100

100:                                              ; preds = %146, %16
  %101 = load i32, ptr %4, align 4, !tbaa !22
  %102 = icmp slt i32 %101, 3
  br i1 %102, label %104, label %103

103:                                              ; preds = %100
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #5
  br label %149

104:                                              ; preds = %100
  %105 = load ptr, ptr %2, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.mjData_, ptr %105, i32 0, i32 30
  %107 = load ptr, ptr %106, align 8, !tbaa !23
  %108 = load i32, ptr %4, align 4, !tbaa !22
  %109 = add nsw i32 %108, 3
  %110 = sext i32 %109 to i64
  %111 = getelementptr inbounds double, ptr %107, i64 %110
  %112 = load double, ptr %111, align 8, !tbaa !14
  %113 = load i32, ptr %4, align 4, !tbaa !22
  %114 = sext i32 %113 to i64
  %115 = getelementptr inbounds [3 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 7), i64 0, i64 %114
  store double %112, ptr %115, align 8, !tbaa !14
  %116 = load ptr, ptr %2, align 8, !tbaa !5
  %117 = getelementptr inbounds %struct.mjData_, ptr %116, i32 0, i32 40
  %118 = load ptr, ptr %117, align 8, !tbaa !24
  %119 = load i32, ptr %4, align 4, !tbaa !22
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds double, ptr %118, i64 %120
  %122 = load double, ptr %121, align 8, !tbaa !14
  %123 = load i32, ptr %4, align 4, !tbaa !22
  %124 = sext i32 %123 to i64
  %125 = getelementptr inbounds [3 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 8), i64 0, i64 %124
  store double %122, ptr %125, align 8, !tbaa !14
  %126 = load ptr, ptr %2, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.mjData_, ptr %126, i32 0, i32 29
  %128 = load ptr, ptr %127, align 8, !tbaa !21
  %129 = load i32, ptr %4, align 4, !tbaa !22
  %130 = sext i32 %129 to i64
  %131 = getelementptr inbounds double, ptr %128, i64 %130
  %132 = load double, ptr %131, align 8, !tbaa !14
  %133 = load i32, ptr %4, align 4, !tbaa !22
  %134 = sext i32 %133 to i64
  %135 = getelementptr inbounds [3 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 4), i64 0, i64 %134
  store double %132, ptr %135, align 8, !tbaa !14
  %136 = load ptr, ptr %2, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.mjData_, ptr %136, i32 0, i32 30
  %138 = load ptr, ptr %137, align 8, !tbaa !23
  %139 = load i32, ptr %4, align 4, !tbaa !22
  %140 = sext i32 %139 to i64
  %141 = getelementptr inbounds double, ptr %138, i64 %140
  %142 = load double, ptr %141, align 8, !tbaa !14
  %143 = load i32, ptr %4, align 4, !tbaa !22
  %144 = sext i32 %143 to i64
  %145 = getelementptr inbounds [3 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 5), i64 0, i64 %144
  store double %142, ptr %145, align 8, !tbaa !14
  br label %146

146:                                              ; preds = %104
  %147 = load i32, ptr %4, align 4, !tbaa !22
  %148 = add nsw i32 %147, 1
  store i32 %148, ptr %4, align 4, !tbaa !22
  br label %100, !llvm.loop !25

149:                                              ; preds = %103
  %150 = load double, ptr getelementptr inbounds ([3 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 4), i64 0, i64 2), align 8, !tbaa !14
  %151 = fsub double %150, 4.000000e-02
  store double %151, ptr getelementptr inbounds ([3 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 4), i64 0, i64 2), align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #5
  store i32 0, ptr %5, align 4, !tbaa !22
  br label %152

152:                                              ; preds = %189, %149
  %153 = load i32, ptr %5, align 4, !tbaa !22
  %154 = icmp slt i32 %153, 12
  br i1 %154, label %156, label %155

155:                                              ; preds = %152
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  br label %192

156:                                              ; preds = %152
  %157 = load ptr, ptr %2, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.mjData_, ptr %157, i32 0, i32 29
  %159 = load ptr, ptr %158, align 8, !tbaa !21
  %160 = load i32, ptr %5, align 4, !tbaa !22
  %161 = add nsw i32 %160, 7
  %162 = sext i32 %161 to i64
  %163 = getelementptr inbounds double, ptr %159, i64 %162
  %164 = load double, ptr %163, align 8, !tbaa !14
  %165 = load i32, ptr %5, align 4, !tbaa !22
  %166 = sext i32 %165 to i64
  %167 = getelementptr inbounds [12 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 9), i64 0, i64 %166
  store double %164, ptr %167, align 8, !tbaa !14
  %168 = load ptr, ptr %2, align 8, !tbaa !5
  %169 = getelementptr inbounds %struct.mjData_, ptr %168, i32 0, i32 30
  %170 = load ptr, ptr %169, align 8, !tbaa !23
  %171 = load i32, ptr %5, align 4, !tbaa !22
  %172 = add nsw i32 %171, 6
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds double, ptr %170, i64 %173
  %175 = load double, ptr %174, align 8, !tbaa !14
  %176 = load i32, ptr %5, align 4, !tbaa !22
  %177 = sext i32 %176 to i64
  %178 = getelementptr inbounds [12 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 10), i64 0, i64 %177
  store double %175, ptr %178, align 8, !tbaa !14
  %179 = load ptr, ptr %2, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.mjData_, ptr %179, i32 0, i32 112
  %181 = load ptr, ptr %180, align 8, !tbaa !27
  %182 = load i32, ptr %5, align 4, !tbaa !22
  %183 = sext i32 %182 to i64
  %184 = getelementptr inbounds double, ptr %181, i64 %183
  %185 = load double, ptr %184, align 8, !tbaa !14
  %186 = load i32, ptr %5, align 4, !tbaa !22
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [12 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 11), i64 0, i64 %187
  store double %185, ptr %188, align 8, !tbaa !14
  br label %189

189:                                              ; preds = %156
  %190 = load i32, ptr %5, align 4, !tbaa !22
  %191 = add nsw i32 %190, 1
  store i32 %191, ptr %5, align 4, !tbaa !22
  br label %152, !llvm.loop !28

192:                                              ; preds = %155
  call void @llvm.lifetime.end.p0(i64 8, ptr %3) #5
  br label %233

193:                                              ; preds = %1
  store double 6.499000e-01, ptr getelementptr inbounds ([3 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 4), i64 0, i64 2), align 8, !tbaa !14
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #5
  store i32 0, ptr %6, align 4, !tbaa !22
  br label %194

194:                                              ; preds = %229, %193
  %195 = load i32, ptr %6, align 4, !tbaa !22
  %196 = icmp slt i32 %195, 12
  br i1 %196, label %198, label %197

197:                                              ; preds = %194
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  br label %232

198:                                              ; preds = %194
  %199 = load ptr, ptr %2, align 8, !tbaa !5
  %200 = getelementptr inbounds %struct.mjData_, ptr %199, i32 0, i32 29
  %201 = load ptr, ptr %200, align 8, !tbaa !21
  %202 = load i32, ptr %6, align 4, !tbaa !22
  %203 = sext i32 %202 to i64
  %204 = getelementptr inbounds double, ptr %201, i64 %203
  %205 = load double, ptr %204, align 8, !tbaa !14
  %206 = load i32, ptr %6, align 4, !tbaa !22
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds [12 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 9), i64 0, i64 %207
  store double %205, ptr %208, align 8, !tbaa !14
  %209 = load ptr, ptr %2, align 8, !tbaa !5
  %210 = getelementptr inbounds %struct.mjData_, ptr %209, i32 0, i32 30
  %211 = load ptr, ptr %210, align 8, !tbaa !23
  %212 = load i32, ptr %6, align 4, !tbaa !22
  %213 = sext i32 %212 to i64
  %214 = getelementptr inbounds double, ptr %211, i64 %213
  %215 = load double, ptr %214, align 8, !tbaa !14
  %216 = load i32, ptr %6, align 4, !tbaa !22
  %217 = sext i32 %216 to i64
  %218 = getelementptr inbounds [12 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 10), i64 0, i64 %217
  store double %215, ptr %218, align 8, !tbaa !14
  %219 = load ptr, ptr %2, align 8, !tbaa !5
  %220 = getelementptr inbounds %struct.mjData_, ptr %219, i32 0, i32 112
  %221 = load ptr, ptr %220, align 8, !tbaa !27
  %222 = load i32, ptr %6, align 4, !tbaa !22
  %223 = sext i32 %222 to i64
  %224 = getelementptr inbounds double, ptr %221, i64 %223
  %225 = load double, ptr %224, align 8, !tbaa !14
  %226 = load i32, ptr %6, align 4, !tbaa !22
  %227 = sext i32 %226 to i64
  %228 = getelementptr inbounds [12 x double], ptr getelementptr inbounds (%"struct.Nabo::inputStruct", ptr @in, i32 0, i32 11), i64 0, i64 %227
  store double %225, ptr %228, align 8, !tbaa !14
  br label %229

229:                                              ; preds = %198
  %230 = load i32, ptr %6, align 4, !tbaa !22
  %231 = add nsw i32 %230, 1
  store i32 %231, ptr %6, align 4, !tbaa !22
  br label %194, !llvm.loop !29

232:                                              ; preds = %197
  br label %233

233:                                              ; preds = %232, %192
  call void @run(ptr noundef nonnull align 8 dereferenceable(440) @in, ptr noundef nonnull align 8 dereferenceable(288) @out)
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #5
  store i32 0, ptr %7, align 4, !tbaa !22
  br label %234

234:                                              ; preds = %249, %233
  %235 = load i32, ptr %7, align 4, !tbaa !22
  %236 = icmp slt i32 %235, 12
  br i1 %236, label %238, label %237

237:                                              ; preds = %234
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #5
  br label %252

238:                                              ; preds = %234
  %239 = load i32, ptr %7, align 4, !tbaa !22
  %240 = sext i32 %239 to i64
  %241 = getelementptr inbounds [12 x double], ptr getelementptr inbounds (%"struct.Nabo::outputStruct", ptr @out, i32 0, i32 2), i64 0, i64 %240
  %242 = load double, ptr %241, align 8, !tbaa !14
  %243 = load ptr, ptr %2, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.mjData_, ptr %243, i32 0, i32 34
  %245 = load ptr, ptr %244, align 8, !tbaa !30
  %246 = load i32, ptr %7, align 4, !tbaa !22
  %247 = sext i32 %246 to i64
  %248 = getelementptr inbounds double, ptr %245, i64 %247
  store double %242, ptr %248, align 8, !tbaa !14
  br label %249

249:                                              ; preds = %238
  %250 = load i32, ptr %7, align 4, !tbaa !22
  %251 = add nsw i32 %250, 1
  store i32 %251, ptr %7, align 4, !tbaa !22
  br label %234, !llvm.loop !31

252:                                              ; preds = %237
  ret void
}

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

; Function Attrs: nounwind
declare double @atan2(double noundef, double noundef) #2

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

; Function Attrs: nounwind
declare double @asin(double noundef) #2

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

declare void @run(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(288)) #4

attributes #0 = { 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 #1 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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 = { 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, !13, i64 161632}
!10 = !{!"_ZTS7mjData_", !11, i64 0, !11, i64 8, !12, i64 16, !11, i64 24, !11, i64 32, !11, i64 40, !11, i64 48, !7, i64 56, !11, i64 1080, !12, i64 1088, !12, i64 1092, !7, i64 1096, !7, i64 1160, !7, i64 1416, !12, i64 161416, !7, i64 161420, !7, i64 161500, !7, i64 161584, !12, i64 161600, !12, i64 161604, !12, i64 161608, !12, i64 161612, !12, i64 161616, !12, i64 161620, !12, i64 161624, !13, i64 161632, !7, i64 161640, !6, i64 161656, !6, i64 161664, !6, i64 161672, !6, i64 161680, !6, i64 161688, !6, i64 161696, !6, i64 161704, !6, i64 161712, !6, i64 161720, !6, i64 161728, !6, i64 161736, !6, i64 161744, !6, i64 161752, !6, i64 161760, !6, i64 161768, !6, i64 161776, !6, i64 161784, !6, i64 161792, !6, i64 161800, !6, i64 161808, !6, i64 161816, !6, i64 161824, !6, i64 161832, !6, i64 161840, !6, i64 161848, !6, i64 161856, !6, i64 161864, !6, i64 161872, !6, i64 161880, !6, i64 161888, !6, i64 161896, !6, i64 161904, !6, i64 161912, !6, i64 161920, !6, i64 161928, !6, i64 161936, !6, i64 161944, !6, i64 161952, !6, i64 161960, !6, i64 161968, !6, i64 161976, !6, i64 161984, !6, i64 161992, !6, i64 162000, !6, i64 162008, !6, i64 162016, !6, i64 162024, !6, i64 162032, !6, i64 162040, !6, i64 162048, !6, i64 162056, !6, i64 162064, !6, i64 162072, !6, i64 162080, !6, i64 162088, !6, i64 162096, !6, i64 162104, !6, i64 162112, !6, i64 162120, !6, i64 162128, !6, i64 162136, !6, i64 162144, !6, i64 162152, !6, i64 162160, !6, i64 162168, !6, i64 162176, !6, i64 162184, !6, i64 162192, !6, i64 162200, !6, i64 162208, !6, i64 162216, !6, i64 162224, !6, i64 162232, !6, i64 162240, !6, i64 162248, !6, i64 162256, !6, i64 162264, !6, i64 162272, !6, i64 162280, !6, i64 162288, !6, i64 162296, !6, i64 162304, !6, i64 162312, !6, i64 162320, !6, i64 162328, !6, i64 162336, !6, i64 162344, !6, i64 162352, !6, i64 162360, !6, i64 162368, !6, i64 162376, !6, i64 162384, !6, i64 162392, !6, i64 162400, !6, i64 162408, !6, i64 162416, !6, i64 162424, !6, i64 162432, !6, i64 162440, !6, i64 162448, !6, i64 162456, !6, i64 162464, !6, i64 162472, !6, i64 162480, !6, i64 162488, !6, i64 162496, !6, i64 162504, !6, i64 162512, !6, i64 162520, !6, i64 162528, !6, i64 162536, !6, i64 162544, !6, i64 162552, !6, i64 162560, !6, i64 162568, !6, i64 162576, !6, i64 162584, !6, i64 162592, !6, i64 162600, !6, i64 162608, !6, i64 162616, !6, i64 162624, !6, i64 162632, !6, i64 162640, !6, i64 162648, !6, i64 162656, !6, i64 162664, !6, i64 162672, !6, i64 162680, !6, i64 162688, !6, i64 162696, !6, i64 162704, !6, i64 162712, !11, i64 162720}
!11 = !{!"long", !7, i64 0}
!12 = !{!"int", !7, i64 0}
!13 = !{!"double", !7, i64 0}
!14 = !{!13, !13, i64 0}
!15 = !{!16, !12, i64 0}
!16 = !{!"_ZTSN4Nabo11inputStructE", !12, i64 0, !13, i64 8, !13, i64 16, !13, i64 24, !7, i64 32, !7, i64 56, !7, i64 80, !7, i64 104, !7, i64 128, !7, i64 152, !7, i64 248, !7, i64 344}
!17 = !{!18, !18, i64 0}
!18 = !{!"bool", !7, i64 0}
!19 = !{i8 0, i8 2}
!20 = !{}
!21 = !{!10, !6, i64 161672}
!22 = !{!12, !12, i64 0}
!23 = !{!10, !6, i64 161680}
!24 = !{!10, !6, i64 161760}
!25 = distinct !{!25, !26}
!26 = !{!"llvm.loop.mustprogress"}
!27 = !{!10, !6, i64 162336}
!28 = distinct !{!28, !26}
!29 = distinct !{!29, !26}
!30 = !{!10, !6, i64 161712}
!31 = distinct !{!31, !26}


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

%"struct.Nabo::inputStruct" = type { i32, double, double, double, [3 x double], [3 x double], [3 x double], [3 x double], [3 x double], [12 x double], [12 x double], [12 x double] }
%"struct.Nabo::outputStruct" = type { [12 x double], [12 x double], [12 x double] }

@dt = external dso_local local_unnamed_addr global double, align 8
@in = external dso_local global %"struct.Nabo::inputStruct", align 8
@out = external dso_local global %"struct.Nabo::outputStruct", align 8
@floatBaseFlag = external dso_local local_unnamed_addr global i8, align 1

; Function Attrs: mustprogress uwtable
define dso_local void @_Z7runCtrlR7mjData_(ptr nocapture noundef nonnull readonly align 8 dereferenceable(162728) %0) local_unnamed_addr #0 {
  %2 = getelementptr inbounds i8, ptr %0, i64 161632
  %3 = load double, ptr %2, align 8, !tbaa !5
  %4 = load double, ptr @dt, align 8, !tbaa !13
  %5 = fdiv double %3, %4
  %6 = fptosi double %5 to i32
  store i32 %6, ptr @in, align 8, !tbaa !14
  %7 = load i8, ptr @floatBaseFlag, align 1, !tbaa !16, !range !18, !noundef !19
  %8 = trunc nuw i8 %7 to i1
  br i1 %8, label %.loopexit.loopexit, label %.loopexit.loopexit72

.loopexit.loopexit:                               ; preds = %1
  %9 = getelementptr inbounds i8, ptr %0, i64 161672
  %10 = load ptr, ptr %9, align 8, !tbaa !20
  %11 = getelementptr inbounds i8, ptr %10, i64 24
  %12 = load double, ptr %11, align 8, !tbaa !13
  %13 = getelementptr inbounds i8, ptr %10, i64 32
  %14 = load double, ptr %13, align 8, !tbaa !13
  %15 = getelementptr inbounds i8, ptr %10, i64 40
  %16 = load double, ptr %15, align 8, !tbaa !13
  %17 = getelementptr inbounds i8, ptr %10, i64 48
  %18 = load double, ptr %17, align 8, !tbaa !13
  %19 = fmul double %16, %18
  %20 = tail call double @llvm.fmuladd.f64(double %12, double %14, double %19)
  %21 = fmul double %20, 2.000000e+00
  %22 = fmul double %16, %16
  %23 = tail call double @llvm.fmuladd.f64(double %14, double %14, double %22)
  %24 = tail call double @llvm.fmuladd.f64(double %23, double -2.000000e+00, double 1.000000e+00)
  %25 = tail call double @atan2(double noundef %21, double noundef %24) #4
  store double %25, ptr getelementptr inbounds (i8, ptr @in, i64 80), align 8, !tbaa !13
  %26 = load double, ptr %11, align 8, !tbaa !13
  %27 = load double, ptr %15, align 8, !tbaa !13
  %28 = load double, ptr %17, align 8, !tbaa !13
  %29 = load double, ptr %13, align 8, !tbaa !13
  %30 = fneg double %28
  %31 = fmul double %29, %30
  %32 = tail call double @llvm.fmuladd.f64(double %26, double %27, double %31)
  %33 = fmul double %32, 2.000000e+00
  %34 = tail call double @asin(double noundef %33) #4
  store double %34, ptr getelementptr inbounds (i8, ptr @in, i64 88), align 8, !tbaa !13
  %35 = load double, ptr %11, align 8, !tbaa !13
  %36 = load double, ptr %17, align 8, !tbaa !13
  %37 = load double, ptr %13, align 8, !tbaa !13
  %38 = load double, ptr %15, align 8, !tbaa !13
  %39 = fmul double %37, %38
  %40 = tail call double @llvm.fmuladd.f64(double %35, double %36, double %39)
  %41 = fmul double %40, 2.000000e+00
  %42 = fmul double %36, %36
  %43 = tail call double @llvm.fmuladd.f64(double %38, double %38, double %42)
  %44 = tail call double @llvm.fmuladd.f64(double %43, double -2.000000e+00, double 1.000000e+00)
  %45 = tail call double @atan2(double noundef %41, double noundef %44) #4
  store double %45, ptr getelementptr inbounds (i8, ptr @in, i64 96), align 8, !tbaa !13
  %46 = getelementptr inbounds i8, ptr %0, i64 161680
  %47 = load ptr, ptr %46, align 8, !tbaa !21
  %48 = getelementptr inbounds i8, ptr %0, i64 161760
  %49 = load ptr, ptr %48, align 8, !tbaa !22
  %50 = load ptr, ptr %9, align 8, !tbaa !20
  %51 = getelementptr inbounds i8, ptr %47, i64 24
  %52 = load double, ptr %51, align 8, !tbaa !13
  store double %52, ptr getelementptr inbounds (i8, ptr @in, i64 104), align 8, !tbaa !13
  %53 = load double, ptr %49, align 8, !tbaa !13
  store double %53, ptr getelementptr inbounds (i8, ptr @in, i64 128), align 8, !tbaa !13
  %54 = load double, ptr %50, align 8, !tbaa !13
  store double %54, ptr getelementptr inbounds (i8, ptr @in, i64 32), align 8, !tbaa !13
  %55 = load double, ptr %47, align 8, !tbaa !13
  store double %55, ptr getelementptr inbounds (i8, ptr @in, i64 56), align 8, !tbaa !13
  %56 = getelementptr inbounds i8, ptr %47, i64 8
  %57 = getelementptr inbounds i8, ptr %47, i64 32
  %58 = load double, ptr %57, align 8, !tbaa !13
  store double %58, ptr getelementptr inbounds (i8, ptr @in, i64 112), align 8, !tbaa !13
  %59 = getelementptr inbounds i8, ptr %49, i64 8
  %60 = load double, ptr %59, align 8, !tbaa !13
  store double %60, ptr getelementptr inbounds (i8, ptr @in, i64 136), align 8, !tbaa !13
  %61 = getelementptr inbounds i8, ptr %50, i64 8
  %62 = load double, ptr %61, align 8, !tbaa !13
  store double %62, ptr getelementptr inbounds (i8, ptr @in, i64 40), align 8, !tbaa !13
  %63 = load double, ptr %56, align 8, !tbaa !13
  store double %63, ptr getelementptr inbounds (i8, ptr @in, i64 64), align 8, !tbaa !13
  %64 = getelementptr inbounds i8, ptr %47, i64 16
  %65 = getelementptr inbounds i8, ptr %47, i64 40
  %66 = load double, ptr %65, align 8, !tbaa !13
  store double %66, ptr getelementptr inbounds (i8, ptr @in, i64 120), align 8, !tbaa !13
  %67 = getelementptr inbounds i8, ptr %49, i64 16
  %68 = load double, ptr %67, align 8, !tbaa !13
  store double %68, ptr getelementptr inbounds (i8, ptr @in, i64 144), align 8, !tbaa !13
  %69 = getelementptr inbounds i8, ptr %50, i64 16
  %70 = load double, ptr %69, align 8, !tbaa !13
  store double %70, ptr getelementptr inbounds (i8, ptr @in, i64 48), align 8, !tbaa !13
  %71 = load double, ptr %64, align 8, !tbaa !13
  store double %71, ptr getelementptr inbounds (i8, ptr @in, i64 72), align 8, !tbaa !13
  %72 = fadd double %70, -4.000000e-02
  store double %72, ptr getelementptr inbounds (i8, ptr @in, i64 48), align 8, !tbaa !13
  %invariant.gep = getelementptr inbounds i8, ptr %50, i64 56
  %invariant.gep68 = getelementptr inbounds i8, ptr %47, i64 48
  %73 = getelementptr inbounds i8, ptr %0, i64 162336
  %74 = load ptr, ptr %73, align 8, !tbaa !23
  %75 = load double, ptr %invariant.gep, align 8, !tbaa !13
  store double %75, ptr getelementptr inbounds (i8, ptr @in, i64 152), align 8, !tbaa !13
  %76 = load double, ptr %invariant.gep68, align 8, !tbaa !13
  store double %76, ptr getelementptr inbounds (i8, ptr @in, i64 248), align 8, !tbaa !13
  %77 = load double, ptr %74, align 8, !tbaa !13
  store double %77, ptr getelementptr inbounds (i8, ptr @in, i64 344), align 8, !tbaa !13
  %gep.1 = getelementptr inbounds i8, ptr %50, i64 64
  %78 = load double, ptr %gep.1, align 8, !tbaa !13
  store double %78, ptr getelementptr inbounds (i8, ptr @in, i64 160), align 8, !tbaa !13
  %gep69.1 = getelementptr inbounds i8, ptr %47, i64 56
  %79 = load double, ptr %gep69.1, align 8, !tbaa !13
  store double %79, ptr getelementptr inbounds (i8, ptr @in, i64 256), align 8, !tbaa !13
  %80 = getelementptr inbounds i8, ptr %74, i64 8
  %81 = load double, ptr %80, align 8, !tbaa !13
  store double %81, ptr getelementptr inbounds (i8, ptr @in, i64 352), align 8, !tbaa !13
  %gep.2 = getelementptr inbounds i8, ptr %50, i64 72
  %82 = load double, ptr %gep.2, align 8, !tbaa !13
  store double %82, ptr getelementptr inbounds (i8, ptr @in, i64 168), align 8, !tbaa !13
  %gep69.2 = getelementptr inbounds i8, ptr %47, i64 64
  %83 = load double, ptr %gep69.2, align 8, !tbaa !13
  store double %83, ptr getelementptr inbounds (i8, ptr @in, i64 264), align 8, !tbaa !13
  %84 = getelementptr inbounds i8, ptr %74, i64 16
  %85 = load double, ptr %84, align 8, !tbaa !13
  store double %85, ptr getelementptr inbounds (i8, ptr @in, i64 360), align 8, !tbaa !13
  %gep.3 = getelementptr inbounds i8, ptr %50, i64 80
  %86 = load double, ptr %gep.3, align 8, !tbaa !13
  store double %86, ptr getelementptr inbounds (i8, ptr @in, i64 176), align 8, !tbaa !13
  %gep69.3 = getelementptr inbounds i8, ptr %47, i64 72
  %87 = load double, ptr %gep69.3, align 8, !tbaa !13
  store double %87, ptr getelementptr inbounds (i8, ptr @in, i64 272), align 8, !tbaa !13
  %88 = getelementptr inbounds i8, ptr %74, i64 24
  %89 = load double, ptr %88, align 8, !tbaa !13
  store double %89, ptr getelementptr inbounds (i8, ptr @in, i64 368), align 8, !tbaa !13
  %gep.4 = getelementptr inbounds i8, ptr %50, i64 88
  %90 = load double, ptr %gep.4, align 8, !tbaa !13
  store double %90, ptr getelementptr inbounds (i8, ptr @in, i64 184), align 8, !tbaa !13
  %gep69.4 = getelementptr inbounds i8, ptr %47, i64 80
  %91 = load double, ptr %gep69.4, align 8, !tbaa !13
  store double %91, ptr getelementptr inbounds (i8, ptr @in, i64 280), align 8, !tbaa !13
  %92 = getelementptr inbounds i8, ptr %74, i64 32
  %93 = load double, ptr %92, align 8, !tbaa !13
  store double %93, ptr getelementptr inbounds (i8, ptr @in, i64 376), align 8, !tbaa !13
  %gep.5 = getelementptr inbounds i8, ptr %50, i64 96
  %94 = load double, ptr %gep.5, align 8, !tbaa !13
  store double %94, ptr getelementptr inbounds (i8, ptr @in, i64 192), align 8, !tbaa !13
  %gep69.5 = getelementptr inbounds i8, ptr %47, i64 88
  %95 = load double, ptr %gep69.5, align 8, !tbaa !13
  store double %95, ptr getelementptr inbounds (i8, ptr @in, i64 288), align 8, !tbaa !13
  %96 = getelementptr inbounds i8, ptr %74, i64 40
  %97 = load double, ptr %96, align 8, !tbaa !13
  store double %97, ptr getelementptr inbounds (i8, ptr @in, i64 384), align 8, !tbaa !13
  %gep.6 = getelementptr inbounds i8, ptr %50, i64 104
  %98 = load double, ptr %gep.6, align 8, !tbaa !13
  store double %98, ptr getelementptr inbounds (i8, ptr @in, i64 200), align 8, !tbaa !13
  %gep69.6 = getelementptr inbounds i8, ptr %47, i64 96
  %99 = load double, ptr %gep69.6, align 8, !tbaa !13
  store double %99, ptr getelementptr inbounds (i8, ptr @in, i64 296), align 8, !tbaa !13
  %100 = getelementptr inbounds i8, ptr %74, i64 48
  %101 = load double, ptr %100, align 8, !tbaa !13
  store double %101, ptr getelementptr inbounds (i8, ptr @in, i64 392), align 8, !tbaa !13
  %gep.7 = getelementptr inbounds i8, ptr %50, i64 112
  %102 = load double, ptr %gep.7, align 8, !tbaa !13
  store double %102, ptr getelementptr inbounds (i8, ptr @in, i64 208), align 8, !tbaa !13
  %gep69.7 = getelementptr inbounds i8, ptr %47, i64 104
  %103 = load double, ptr %gep69.7, align 8, !tbaa !13
  store double %103, ptr getelementptr inbounds (i8, ptr @in, i64 304), align 8, !tbaa !13
  %104 = getelementptr inbounds i8, ptr %74, i64 56
  %105 = load double, ptr %104, align 8, !tbaa !13
  store double %105, ptr getelementptr inbounds (i8, ptr @in, i64 400), align 8, !tbaa !13
  %gep.8 = getelementptr inbounds i8, ptr %50, i64 120
  %106 = load double, ptr %gep.8, align 8, !tbaa !13
  store double %106, ptr getelementptr inbounds (i8, ptr @in, i64 216), align 8, !tbaa !13
  %gep69.8 = getelementptr inbounds i8, ptr %47, i64 112
  %107 = load double, ptr %gep69.8, align 8, !tbaa !13
  store double %107, ptr getelementptr inbounds (i8, ptr @in, i64 312), align 8, !tbaa !13
  %108 = getelementptr inbounds i8, ptr %74, i64 64
  %109 = load double, ptr %108, align 8, !tbaa !13
  store double %109, ptr getelementptr inbounds (i8, ptr @in, i64 408), align 8, !tbaa !13
  %gep.9 = getelementptr inbounds i8, ptr %50, i64 128
  %110 = load double, ptr %gep.9, align 8, !tbaa !13
  store double %110, ptr getelementptr inbounds (i8, ptr @in, i64 224), align 8, !tbaa !13
  %gep69.9 = getelementptr inbounds i8, ptr %47, i64 120
  %111 = load double, ptr %gep69.9, align 8, !tbaa !13
  store double %111, ptr getelementptr inbounds (i8, ptr @in, i64 320), align 8, !tbaa !13
  %112 = getelementptr inbounds i8, ptr %74, i64 72
  %113 = load double, ptr %112, align 8, !tbaa !13
  store double %113, ptr getelementptr inbounds (i8, ptr @in, i64 416), align 8, !tbaa !13
  %gep.10 = getelementptr inbounds i8, ptr %50, i64 136
  %114 = load double, ptr %gep.10, align 8, !tbaa !13
  store double %114, ptr getelementptr inbounds (i8, ptr @in, i64 232), align 8, !tbaa !13
  %gep69.10 = getelementptr inbounds i8, ptr %47, i64 128
  %115 = load double, ptr %gep69.10, align 8, !tbaa !13
  store double %115, ptr getelementptr inbounds (i8, ptr @in, i64 328), align 8, !tbaa !13
  %116 = getelementptr inbounds i8, ptr %74, i64 80
  %117 = load double, ptr %116, align 8, !tbaa !13
  store double %117, ptr getelementptr inbounds (i8, ptr @in, i64 424), align 8, !tbaa !13
  %gep.11 = getelementptr inbounds i8, ptr %50, i64 144
  %118 = load double, ptr %gep.11, align 8, !tbaa !13
  store double %118, ptr getelementptr inbounds (i8, ptr @in, i64 240), align 8, !tbaa !13
  %gep69.11 = getelementptr inbounds i8, ptr %47, i64 136
  br label %.loopexit

.loopexit.loopexit72:                             ; preds = %1
  store double 6.499000e-01, ptr getelementptr inbounds (i8, ptr @in, i64 48), align 8, !tbaa !13
  %119 = getelementptr inbounds i8, ptr %0, i64 161672
  %120 = load ptr, ptr %119, align 8, !tbaa !20
  %121 = getelementptr inbounds i8, ptr %0, i64 161680
  %122 = load ptr, ptr %121, align 8, !tbaa !21
  %123 = getelementptr inbounds i8, ptr %0, i64 162336
  %124 = load ptr, ptr %123, align 8, !tbaa !23
  %125 = load double, ptr %120, align 8, !tbaa !13
  store double %125, ptr getelementptr inbounds (i8, ptr @in, i64 152), align 8, !tbaa !13
  %126 = load double, ptr %122, align 8, !tbaa !13
  store double %126, ptr getelementptr inbounds (i8, ptr @in, i64 248), align 8, !tbaa !13
  %127 = load double, ptr %124, align 8, !tbaa !13
  store double %127, ptr getelementptr inbounds (i8, ptr @in, i64 344), align 8, !tbaa !13
  %128 = getelementptr inbounds i8, ptr %120, i64 8
  %129 = load double, ptr %128, align 8, !tbaa !13
  store double %129, ptr getelementptr inbounds (i8, ptr @in, i64 160), align 8, !tbaa !13
  %130 = getelementptr inbounds i8, ptr %122, i64 8
  %131 = load double, ptr %130, align 8, !tbaa !13
  store double %131, ptr getelementptr inbounds (i8, ptr @in, i64 256), align 8, !tbaa !13
  %132 = getelementptr inbounds i8, ptr %124, i64 8
  %133 = load double, ptr %132, align 8, !tbaa !13
  store double %133, ptr getelementptr inbounds (i8, ptr @in, i64 352), align 8, !tbaa !13
  %134 = getelementptr inbounds i8, ptr %120, i64 16
  %135 = load double, ptr %134, align 8, !tbaa !13
  store double %135, ptr getelementptr inbounds (i8, ptr @in, i64 168), align 8, !tbaa !13
  %136 = getelementptr inbounds i8, ptr %122, i64 16
  %137 = load double, ptr %136, align 8, !tbaa !13
  store double %137, ptr getelementptr inbounds (i8, ptr @in, i64 264), align 8, !tbaa !13
  %138 = getelementptr inbounds i8, ptr %124, i64 16
  %139 = load double, ptr %138, align 8, !tbaa !13
  store double %139, ptr getelementptr inbounds (i8, ptr @in, i64 360), align 8, !tbaa !13
  %140 = getelementptr inbounds i8, ptr %120, i64 24
  %141 = load double, ptr %140, align 8, !tbaa !13
  store double %141, ptr getelementptr inbounds (i8, ptr @in, i64 176), align 8, !tbaa !13
  %142 = getelementptr inbounds i8, ptr %122, i64 24
  %143 = load double, ptr %142, align 8, !tbaa !13
  store double %143, ptr getelementptr inbounds (i8, ptr @in, i64 272), align 8, !tbaa !13
  %144 = getelementptr inbounds i8, ptr %124, i64 24
  %145 = load double, ptr %144, align 8, !tbaa !13
  store double %145, ptr getelementptr inbounds (i8, ptr @in, i64 368), align 8, !tbaa !13
  %146 = getelementptr inbounds i8, ptr %120, i64 32
  %147 = load double, ptr %146, align 8, !tbaa !13
  store double %147, ptr getelementptr inbounds (i8, ptr @in, i64 184), align 8, !tbaa !13
  %148 = getelementptr inbounds i8, ptr %122, i64 32
  %149 = load double, ptr %148, align 8, !tbaa !13
  store double %149, ptr getelementptr inbounds (i8, ptr @in, i64 280), align 8, !tbaa !13
  %150 = getelementptr inbounds i8, ptr %124, i64 32
  %151 = load double, ptr %150, align 8, !tbaa !13
  store double %151, ptr getelementptr inbounds (i8, ptr @in, i64 376), align 8, !tbaa !13
  %152 = getelementptr inbounds i8, ptr %120, i64 40
  %153 = load double, ptr %152, align 8, !tbaa !13
  store double %153, ptr getelementptr inbounds (i8, ptr @in, i64 192), align 8, !tbaa !13
  %154 = getelementptr inbounds i8, ptr %122, i64 40
  %155 = load double, ptr %154, align 8, !tbaa !13
  store double %155, ptr getelementptr inbounds (i8, ptr @in, i64 288), align 8, !tbaa !13
  %156 = getelementptr inbounds i8, ptr %124, i64 40
  %157 = load double, ptr %156, align 8, !tbaa !13
  store double %157, ptr getelementptr inbounds (i8, ptr @in, i64 384), align 8, !tbaa !13
  %158 = getelementptr inbounds i8, ptr %120, i64 48
  %159 = load double, ptr %158, align 8, !tbaa !13
  store double %159, ptr getelementptr inbounds (i8, ptr @in, i64 200), align 8, !tbaa !13
  %160 = getelementptr inbounds i8, ptr %122, i64 48
  %161 = load double, ptr %160, align 8, !tbaa !13
  store double %161, ptr getelementptr inbounds (i8, ptr @in, i64 296), align 8, !tbaa !13
  %162 = getelementptr inbounds i8, ptr %124, i64 48
  %163 = load double, ptr %162, align 8, !tbaa !13
  store double %163, ptr getelementptr inbounds (i8, ptr @in, i64 392), align 8, !tbaa !13
  %164 = getelementptr inbounds i8, ptr %120, i64 56
  %165 = load double, ptr %164, align 8, !tbaa !13
  store double %165, ptr getelementptr inbounds (i8, ptr @in, i64 208), align 8, !tbaa !13
  %166 = getelementptr inbounds i8, ptr %122, i64 56
  %167 = load double, ptr %166, align 8, !tbaa !13
  store double %167, ptr getelementptr inbounds (i8, ptr @in, i64 304), align 8, !tbaa !13
  %168 = getelementptr inbounds i8, ptr %124, i64 56
  %169 = load double, ptr %168, align 8, !tbaa !13
  store double %169, ptr getelementptr inbounds (i8, ptr @in, i64 400), align 8, !tbaa !13
  %170 = getelementptr inbounds i8, ptr %120, i64 64
  %171 = load double, ptr %170, align 8, !tbaa !13
  store double %171, ptr getelementptr inbounds (i8, ptr @in, i64 216), align 8, !tbaa !13
  %172 = getelementptr inbounds i8, ptr %122, i64 64
  %173 = load double, ptr %172, align 8, !tbaa !13
  store double %173, ptr getelementptr inbounds (i8, ptr @in, i64 312), align 8, !tbaa !13
  %174 = getelementptr inbounds i8, ptr %124, i64 64
  %175 = load double, ptr %174, align 8, !tbaa !13
  store double %175, ptr getelementptr inbounds (i8, ptr @in, i64 408), align 8, !tbaa !13
  %176 = getelementptr inbounds i8, ptr %120, i64 72
  %177 = load double, ptr %176, align 8, !tbaa !13
  store double %177, ptr getelementptr inbounds (i8, ptr @in, i64 224), align 8, !tbaa !13
  %178 = getelementptr inbounds i8, ptr %122, i64 72
  %179 = load double, ptr %178, align 8, !tbaa !13
  store double %179, ptr getelementptr inbounds (i8, ptr @in, i64 320), align 8, !tbaa !13
  %180 = getelementptr inbounds i8, ptr %124, i64 72
  %181 = load double, ptr %180, align 8, !tbaa !13
  store double %181, ptr getelementptr inbounds (i8, ptr @in, i64 416), align 8, !tbaa !13
  %182 = getelementptr inbounds i8, ptr %120, i64 80
  %183 = load double, ptr %182, align 8, !tbaa !13
  store double %183, ptr getelementptr inbounds (i8, ptr @in, i64 232), align 8, !tbaa !13
  %184 = getelementptr inbounds i8, ptr %122, i64 80
  %185 = load double, ptr %184, align 8, !tbaa !13
  store double %185, ptr getelementptr inbounds (i8, ptr @in, i64 328), align 8, !tbaa !13
  %186 = getelementptr inbounds i8, ptr %124, i64 80
  %187 = load double, ptr %186, align 8, !tbaa !13
  store double %187, ptr getelementptr inbounds (i8, ptr @in, i64 424), align 8, !tbaa !13
  %188 = getelementptr inbounds i8, ptr %120, i64 88
  %189 = load double, ptr %188, align 8, !tbaa !13
  store double %189, ptr getelementptr inbounds (i8, ptr @in, i64 240), align 8, !tbaa !13
  %190 = getelementptr inbounds i8, ptr %122, i64 88
  br label %.loopexit

.loopexit:                                        ; preds = %.loopexit.loopexit72, %.loopexit.loopexit
  %storemerge77.in = phi ptr [ %190, %.loopexit.loopexit72 ], [ %gep69.11, %.loopexit.loopexit ]
  %.pn = phi ptr [ %124, %.loopexit.loopexit72 ], [ %74, %.loopexit.loopexit ]
  %storemerge77 = load double, ptr %storemerge77.in, align 8, !tbaa !13
  store double %storemerge77, ptr getelementptr inbounds (i8, ptr @in, i64 336), align 8, !tbaa !13
  %storemerge.in = getelementptr inbounds i8, ptr %.pn, i64 88
  %storemerge = load double, ptr %storemerge.in, align 8, !tbaa !13
  store double %storemerge, ptr getelementptr inbounds (i8, ptr @in, i64 432), align 8, !tbaa !13
  tail call void @run(ptr noundef nonnull align 8 dereferenceable(440) @in, ptr noundef nonnull align 8 dereferenceable(288) @out)
  %191 = getelementptr inbounds i8, ptr %0, i64 161712
  %192 = load ptr, ptr %191, align 8, !tbaa !24
  %193 = load double, ptr getelementptr inbounds (i8, ptr @out, i64 192), align 8, !tbaa !13
  store double %193, ptr %192, align 8, !tbaa !13
  %194 = load double, ptr getelementptr inbounds (i8, ptr @out, i64 200), align 8, !tbaa !13
  %195 = getelementptr inbounds i8, ptr %192, i64 8
  store double %194, ptr %195, align 8, !tbaa !13
  %196 = load double, ptr getelementptr inbounds (i8, ptr @out, i64 208), align 8, !tbaa !13
  %197 = getelementptr inbounds i8, ptr %192, i64 16
  store double %196, ptr %197, align 8, !tbaa !13
  %198 = load double, ptr getelementptr inbounds (i8, ptr @out, i64 216), align 8, !tbaa !13
  %199 = getelementptr inbounds i8, ptr %192, i64 24
  store double %198, ptr %199, align 8, !tbaa !13
  %200 = load double, ptr getelementptr inbounds (i8, ptr @out, i64 224), align 8, !tbaa !13
  %201 = getelementptr inbounds i8, ptr %192, i64 32
  store double %200, ptr %201, align 8, !tbaa !13
  %202 = load double, ptr getelementptr inbounds (i8, ptr @out, i64 232), align 8, !tbaa !13
  %203 = getelementptr inbounds i8, ptr %192, i64 40
  store double %202, ptr %203, align 8, !tbaa !13
  %204 = load double, ptr getelementptr inbounds (i8, ptr @out, i64 240), align 8, !tbaa !13
  %205 = getelementptr inbounds i8, ptr %192, i64 48
  store double %204, ptr %205, align 8, !tbaa !13
  %206 = load double, ptr getelementptr inbounds (i8, ptr @out, i64 248), align 8, !tbaa !13
  %207 = getelementptr inbounds i8, ptr %192, i64 56
  store double %206, ptr %207, align 8, !tbaa !13
  %208 = load double, ptr getelementptr inbounds (i8, ptr @out, i64 256), align 8, !tbaa !13
  %209 = getelementptr inbounds i8, ptr %192, i64 64
  store double %208, ptr %209, align 8, !tbaa !13
  %210 = load double, ptr getelementptr inbounds (i8, ptr @out, i64 264), align 8, !tbaa !13
  %211 = getelementptr inbounds i8, ptr %192, i64 72
  store double %210, ptr %211, align 8, !tbaa !13
  %212 = load double, ptr getelementptr inbounds (i8, ptr @out, i64 272), align 8, !tbaa !13
  %213 = getelementptr inbounds i8, ptr %192, i64 80
  store double %212, ptr %213, align 8, !tbaa !13
  %214 = load double, ptr getelementptr inbounds (i8, ptr @out, i64 280), align 8, !tbaa !13
  %215 = getelementptr inbounds i8, ptr %192, i64 88
  store double %214, ptr %215, align 8, !tbaa !13
  ret void
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(write)
declare double @atan2(double noundef, double noundef) local_unnamed_addr #1

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

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

declare void @run(ptr noundef nonnull align 8 dereferenceable(440), ptr noundef nonnull align 8 dereferenceable(288)) local_unnamed_addr #3

attributes #0 = { 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 #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #3 = { "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 = { 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, !11, i64 161632}
!6 = !{!"_ZTS7mjData_", !7, i64 0, !7, i64 8, !10, i64 16, !7, i64 24, !7, i64 32, !7, i64 40, !7, i64 48, !8, i64 56, !7, i64 1080, !10, i64 1088, !10, i64 1092, !8, i64 1096, !8, i64 1160, !8, i64 1416, !10, i64 161416, !8, i64 161420, !8, i64 161500, !8, i64 161584, !10, i64 161600, !10, i64 161604, !10, i64 161608, !10, i64 161612, !10, i64 161616, !10, i64 161620, !10, i64 161624, !11, i64 161632, !8, i64 161640, !12, i64 161656, !12, i64 161664, !12, i64 161672, !12, i64 161680, !12, i64 161688, !12, i64 161696, !12, i64 161704, !12, i64 161712, !12, i64 161720, !12, i64 161728, !12, i64 161736, !12, i64 161744, !12, i64 161752, !12, i64 161760, !12, i64 161768, !12, i64 161776, !12, i64 161784, !12, i64 161792, !12, i64 161800, !12, i64 161808, !12, i64 161816, !12, i64 161824, !12, i64 161832, !12, i64 161840, !12, i64 161848, !12, i64 161856, !12, i64 161864, !12, i64 161872, !12, i64 161880, !12, i64 161888, !12, i64 161896, !12, i64 161904, !12, i64 161912, !12, i64 161920, !12, i64 161928, !12, i64 161936, !12, i64 161944, !12, i64 161952, !12, i64 161960, !12, i64 161968, !12, i64 161976, !12, i64 161984, !12, i64 161992, !12, i64 162000, !12, i64 162008, !12, i64 162016, !12, i64 162024, !12, i64 162032, !12, i64 162040, !12, i64 162048, !12, i64 162056, !12, i64 162064, !12, i64 162072, !12, i64 162080, !12, i64 162088, !12, i64 162096, !12, i64 162104, !12, i64 162112, !12, i64 162120, !12, i64 162128, !12, i64 162136, !12, i64 162144, !12, i64 162152, !12, i64 162160, !12, i64 162168, !12, i64 162176, !12, i64 162184, !12, i64 162192, !12, i64 162200, !12, i64 162208, !12, i64 162216, !12, i64 162224, !12, i64 162232, !12, i64 162240, !12, i64 162248, !12, i64 162256, !12, i64 162264, !12, i64 162272, !12, i64 162280, !12, i64 162288, !12, i64 162296, !12, i64 162304, !12, i64 162312, !12, i64 162320, !12, i64 162328, !12, i64 162336, !12, i64 162344, !12, i64 162352, !12, i64 162360, !12, i64 162368, !12, i64 162376, !12, i64 162384, !12, i64 162392, !12, i64 162400, !12, i64 162408, !12, i64 162416, !12, i64 162424, !12, i64 162432, !12, i64 162440, !12, i64 162448, !12, i64 162456, !12, i64 162464, !12, i64 162472, !12, i64 162480, !12, i64 162488, !12, i64 162496, !12, i64 162504, !12, i64 162512, !12, i64 162520, !12, i64 162528, !12, i64 162536, !12, i64 162544, !12, i64 162552, !12, i64 162560, !12, i64 162568, !12, i64 162576, !12, i64 162584, !12, i64 162592, !12, i64 162600, !12, i64 162608, !12, i64 162616, !12, i64 162624, !12, i64 162632, !12, i64 162640, !12, i64 162648, !12, i64 162656, !12, i64 162664, !12, i64 162672, !12, i64 162680, !12, i64 162688, !12, i64 162696, !12, i64 162704, !12, i64 162712, !7, i64 162720}
!7 = !{!"long", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C++ TBAA"}
!10 = !{!"int", !8, i64 0}
!11 = !{!"double", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!15, !10, i64 0}
!15 = !{!"_ZTSN4Nabo11inputStructE", !10, i64 0, !11, i64 8, !11, i64 16, !11, i64 24, !8, i64 32, !8, i64 56, !8, i64 80, !8, i64 104, !8, i64 128, !8, i64 152, !8, i64 248, !8, i64 344}
!16 = !{!17, !17, i64 0}
!17 = !{!"bool", !8, i64 0}
!18 = !{i8 0, i8 2}
!19 = !{}
!20 = !{!6, !12, i64 161672}
!21 = !{!6, !12, i64 161680}
!22 = !{!6, !12, i64 161760}
!23 = !{!6, !12, i64 162336}
!24 = !{!6, !12, i64 161712}


; Effective O3 passes: EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,LICMPass,LoopRotatePass,LoopSimplifyPass,PostOrderFunctionAttrsPass,ReassociatePass,SROAPass,SimplifyCFGPass,TailCallElimPass