; LLVM IR from ImperialCollegeLondon/pnflow :: src/pnm/pnflow (FlowData)

; Unoptimized IR (clang -disable-llvm-passes):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator" }
%"struct.std::array" = type { [8 x double] }

; Function Attrs: mustprogress uwtable
define dso_local void @_Z13getWetIndicesRdS_S_RKSt6vectorIS0_ISt5arrayIdLm8EESaIS2_EESaIS4_EE(ptr noundef nonnull align 8 dereferenceable(8) %0, ptr noundef nonnull align 8 dereferenceable(8) %1, ptr noundef nonnull align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca [3 x double], align 16
  %12 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %13 = alloca %"class.std::reverse_iterator", align 8
  %14 = alloca [3 x double], align 16
  %15 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %16 = alloca %"class.std::reverse_iterator", align 8
  %17 = alloca double, align 8
  %18 = alloca double, align 8
  %19 = alloca i64, align 8
  %20 = alloca ptr, align 8
  %21 = alloca %"struct.std::array", align 8
  %22 = alloca double, align 8
  %23 = alloca double, align 8
  %24 = alloca i64, align 8
  %25 = alloca ptr, align 8
  %26 = alloca %"struct.std::array", align 8
  %27 = alloca double, align 8
  %28 = alloca double, align 8
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #7
  store i32 3, ptr %9, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #7
  store i32 2, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #7
  %29 = load ptr, ptr %8, align 8, !tbaa !5
  %30 = load i32, ptr %10, align 4, !tbaa !9
  %31 = sext i32 %30 to i64
  %32 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %29, i64 noundef %31) #7
  %33 = call ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %32) #7
  %34 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %12, i32 0, i32 0
  store ptr %33, ptr %34, align 8
  %35 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5arrayIdLm8EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %12) #7
  %36 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %35, i64 noundef 0) #7
  %37 = load double, ptr %36, align 8, !tbaa !11
  store double %37, ptr %11, align 8, !tbaa !11
  %38 = getelementptr inbounds double, ptr %11, i64 1
  store double 1.000000e+00, ptr %38, align 8, !tbaa !11
  %39 = getelementptr inbounds double, ptr %11, i64 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %40 = load ptr, ptr %8, align 8, !tbaa !5
  %41 = load i32, ptr %10, align 4, !tbaa !9
  %42 = sext i32 %41 to i64
  %43 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %40, i64 noundef %42) #7
  call void @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %13, ptr noundef nonnull align 8 dereferenceable(24) %43) #7
  %44 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKSt5arrayIdLm8EESt6vectorIS3_SaIS3_EEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %13)
  %45 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %44, i64 noundef 0) #7
  %46 = load double, ptr %45, align 8, !tbaa !11
  store double %46, ptr %39, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.start.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #7
  %47 = load ptr, ptr %8, align 8, !tbaa !5
  %48 = load i32, ptr %9, align 4, !tbaa !9
  %49 = sext i32 %48 to i64
  %50 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %47, i64 noundef %49) #7
  %51 = call ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %50) #7
  %52 = getelementptr inbounds %"class.__gnu_cxx::__normal_iterator", ptr %15, i32 0, i32 0
  store ptr %51, ptr %52, align 8
  %53 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5arrayIdLm8EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %15) #7
  %54 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %53, i64 noundef 0) #7
  %55 = load double, ptr %54, align 8, !tbaa !11
  store double %55, ptr %14, align 8, !tbaa !11
  %56 = getelementptr inbounds double, ptr %14, i64 1
  store double 0.000000e+00, ptr %56, align 8, !tbaa !11
  %57 = getelementptr inbounds double, ptr %14, i64 2
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #7
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = load i32, ptr %9, align 4, !tbaa !9
  %60 = sext i32 %59 to i64
  %61 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %58, i64 noundef %60) #7
  call void @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE6rbeginEv(ptr dead_on_unwind writable sret(%"class.std::reverse_iterator") align 8 %16, ptr noundef nonnull align 8 dereferenceable(24) %61) #7
  %62 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKSt5arrayIdLm8EESt6vectorIS3_SaIS3_EEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %16)
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %62, i64 noundef 0) #7
  %64 = load double, ptr %63, align 8, !tbaa !11
  store double %64, ptr %57, align 8, !tbaa !11
  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.start.p0(i64 8, ptr %17) #7
  store double 0.000000e+00, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #7
  store double 0.000000e+00, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #7
  store i64 1, ptr %19, align 8, !tbaa !13
  br label %65

65:                                               ; preds = %142, %4
  %66 = load i64, ptr %19, align 8, !tbaa !13
  %67 = load ptr, ptr %8, align 8, !tbaa !5
  %68 = load i32, ptr %9, align 4, !tbaa !9
  %69 = sext i32 %68 to i64
  %70 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %67, i64 noundef %69) #7
  %71 = call noundef i64 @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %70) #7
  %72 = icmp ult i64 %66, %71
  br i1 %72, label %74, label %73

73:                                               ; preds = %65
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #7
  br label %145

74:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 8, ptr %20) #7
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = load i32, ptr %9, align 4, !tbaa !9
  %77 = sext i32 %76 to i64
  %78 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %75, i64 noundef %77) #7
  %79 = load i64, ptr %19, align 8, !tbaa !13
  %80 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %78, i64 noundef %79) #7
  store ptr %80, ptr %20, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %21) #7
  %81 = load ptr, ptr %8, align 8, !tbaa !5
  %82 = load i32, ptr %9, align 4, !tbaa !9
  %83 = sext i32 %82 to i64
  %84 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %81, i64 noundef %83) #7
  %85 = load i64, ptr %19, align 8, !tbaa !13
  %86 = sub i64 %85, 1
  %87 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %84, i64 noundef %86) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %21, ptr align 8 %87, i64 64, i1 false), !tbaa.struct !15
  %88 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %21, i64 noundef 0) #7
  %89 = load double, ptr %88, align 8, !tbaa !11
  %90 = load ptr, ptr %20, align 8, !tbaa !5
  %91 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %90, i64 noundef 0) #7
  %92 = load double, ptr %91, align 8, !tbaa !11
  %93 = fsub double %89, %92
  %94 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %21, i64 noundef 1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %22) #7
  store double 0.000000e+00, ptr %22, align 8, !tbaa !11
  %95 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %94, ptr noundef nonnull align 8 dereferenceable(8) %22)
  %96 = load double, ptr %95, align 8, !tbaa !11
  %97 = load ptr, ptr %20, align 8, !tbaa !5
  %98 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %97, i64 noundef 1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #7
  store double 0.000000e+00, ptr %23, align 8, !tbaa !11
  %99 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %98, ptr noundef nonnull align 8 dereferenceable(8) %23)
  %100 = load double, ptr %99, align 8, !tbaa !11
  %101 = fadd double %96, %100
  %102 = fmul double %93, %101
  %103 = fdiv double %102, 2.000000e+00
  %104 = load double, ptr %17, align 8, !tbaa !11
  %105 = fadd double %104, %103
  store double %105, ptr %17, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %22) #7
  %106 = load ptr, ptr %20, align 8, !tbaa !5
  %107 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %106, i64 noundef 1) #7
  %108 = load double, ptr %107, align 8, !tbaa !11
  %109 = fcmp oeq double %108, 0.000000e+00
  br i1 %109, label %118, label %110

110:                                              ; preds = %74
  %111 = load ptr, ptr %20, align 8, !tbaa !5
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %111, i64 noundef 1) #7
  %113 = load double, ptr %112, align 8, !tbaa !11
  %114 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %21, i64 noundef 1) #7
  %115 = load double, ptr %114, align 8, !tbaa !11
  %116 = fmul double %113, %115
  %117 = fcmp olt double %116, 0.000000e+00
  br i1 %117, label %118, label %141

118:                                              ; preds = %110, %74
  %119 = load ptr, ptr %20, align 8, !tbaa !5
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %119, i64 noundef 0) #7
  %121 = load double, ptr %120, align 8, !tbaa !11
  %122 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %21, i64 noundef 0) #7
  %123 = load double, ptr %122, align 8, !tbaa !11
  %124 = load ptr, ptr %20, align 8, !tbaa !5
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %124, i64 noundef 0) #7
  %126 = load double, ptr %125, align 8, !tbaa !11
  %127 = fsub double %123, %126
  %128 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %21, i64 noundef 1) #7
  %129 = load double, ptr %128, align 8, !tbaa !11
  %130 = load ptr, ptr %20, align 8, !tbaa !5
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %130, i64 noundef 1) #7
  %132 = load double, ptr %131, align 8, !tbaa !11
  %133 = fsub double %129, %132
  %134 = fdiv double %127, %133
  %135 = load ptr, ptr %20, align 8, !tbaa !5
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %135, i64 noundef 1) #7
  %137 = load double, ptr %136, align 8, !tbaa !11
  %138 = fsub double 0.000000e+00, %137
  %139 = call double @llvm.fmuladd.f64(double %134, double %138, double %121)
  %140 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  store double %139, ptr %140, align 16, !tbaa !11
  br label %141

141:                                              ; preds = %118, %110
  call void @llvm.lifetime.end.p0(i64 64, ptr %21) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %20) #7
  br label %142

142:                                              ; preds = %141
  %143 = load i64, ptr %19, align 8, !tbaa !13
  %144 = add i64 %143, 1
  store i64 %144, ptr %19, align 8, !tbaa !13
  br label %65, !llvm.loop !17

145:                                              ; preds = %73
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #7
  store i64 1, ptr %24, align 8, !tbaa !13
  br label %146

146:                                              ; preds = %223, %145
  %147 = load i64, ptr %24, align 8, !tbaa !13
  %148 = load ptr, ptr %8, align 8, !tbaa !5
  %149 = load i32, ptr %10, align 4, !tbaa !9
  %150 = sext i32 %149 to i64
  %151 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %148, i64 noundef %150) #7
  %152 = call noundef i64 @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %151) #7
  %153 = icmp ult i64 %147, %152
  br i1 %153, label %155, label %154

154:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #7
  br label %226

155:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #7
  %156 = load ptr, ptr %8, align 8, !tbaa !5
  %157 = load i32, ptr %10, align 4, !tbaa !9
  %158 = sext i32 %157 to i64
  %159 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %156, i64 noundef %158) #7
  %160 = load i64, ptr %24, align 8, !tbaa !13
  %161 = sub i64 %160, 1
  %162 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %161) #7
  store ptr %162, ptr %25, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 64, ptr %26) #7
  %163 = load ptr, ptr %8, align 8, !tbaa !5
  %164 = load i32, ptr %10, align 4, !tbaa !9
  %165 = sext i32 %164 to i64
  %166 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %163, i64 noundef %165) #7
  %167 = load i64, ptr %24, align 8, !tbaa !13
  %168 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %166, i64 noundef %167) #7
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %26, ptr align 8 %168, i64 64, i1 false), !tbaa.struct !15
  %169 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %26, i64 noundef 0) #7
  %170 = load double, ptr %169, align 8, !tbaa !11
  %171 = load ptr, ptr %25, align 8, !tbaa !5
  %172 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %171, i64 noundef 0) #7
  %173 = load double, ptr %172, align 8, !tbaa !11
  %174 = fsub double %170, %173
  %175 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %26, i64 noundef 1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %27) #7
  store double 0.000000e+00, ptr %27, align 8, !tbaa !11
  %176 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %175, ptr noundef nonnull align 8 dereferenceable(8) %27)
  %177 = load double, ptr %176, align 8, !tbaa !11
  %178 = load ptr, ptr %25, align 8, !tbaa !5
  %179 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %178, i64 noundef 1) #7
  call void @llvm.lifetime.start.p0(i64 8, ptr %28) #7
  store double 0.000000e+00, ptr %28, align 8, !tbaa !11
  %180 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %179, ptr noundef nonnull align 8 dereferenceable(8) %28)
  %181 = load double, ptr %180, align 8, !tbaa !11
  %182 = fadd double %177, %181
  %183 = fmul double %174, %182
  %184 = fdiv double %183, 2.000000e+00
  %185 = load double, ptr %18, align 8, !tbaa !11
  %186 = fsub double %185, %184
  store double %186, ptr %18, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %28) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %27) #7
  %187 = load ptr, ptr %25, align 8, !tbaa !5
  %188 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %187, i64 noundef 1) #7
  %189 = load double, ptr %188, align 8, !tbaa !11
  %190 = fcmp oeq double %189, 0.000000e+00
  br i1 %190, label %199, label %191

191:                                              ; preds = %155
  %192 = load ptr, ptr %25, align 8, !tbaa !5
  %193 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %192, i64 noundef 1) #7
  %194 = load double, ptr %193, align 8, !tbaa !11
  %195 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %26, i64 noundef 1) #7
  %196 = load double, ptr %195, align 8, !tbaa !11
  %197 = fmul double %194, %196
  %198 = fcmp olt double %197, 0.000000e+00
  br i1 %198, label %199, label %222

199:                                              ; preds = %191, %155
  %200 = load ptr, ptr %25, align 8, !tbaa !5
  %201 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %200, i64 noundef 0) #7
  %202 = load double, ptr %201, align 8, !tbaa !11
  %203 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %26, i64 noundef 0) #7
  %204 = load double, ptr %203, align 8, !tbaa !11
  %205 = load ptr, ptr %25, align 8, !tbaa !5
  %206 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %205, i64 noundef 0) #7
  %207 = load double, ptr %206, align 8, !tbaa !11
  %208 = fsub double %204, %207
  %209 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %26, i64 noundef 1) #7
  %210 = load double, ptr %209, align 8, !tbaa !11
  %211 = load ptr, ptr %25, align 8, !tbaa !5
  %212 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %211, i64 noundef 1) #7
  %213 = load double, ptr %212, align 8, !tbaa !11
  %214 = fsub double %210, %213
  %215 = fdiv double %208, %214
  %216 = load ptr, ptr %25, align 8, !tbaa !5
  %217 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %216, i64 noundef 1) #7
  %218 = load double, ptr %217, align 8, !tbaa !11
  %219 = fsub double 0.000000e+00, %218
  %220 = call double @llvm.fmuladd.f64(double %215, double %219, double %202)
  %221 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  store double %220, ptr %221, align 16, !tbaa !11
  br label %222

222:                                              ; preds = %199, %191
  call void @llvm.lifetime.end.p0(i64 64, ptr %26) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #7
  br label %223

223:                                              ; preds = %222
  %224 = load i64, ptr %24, align 8, !tbaa !13
  %225 = add i64 %224, 1
  store i64 %225, ptr %24, align 8, !tbaa !13
  br label %146, !llvm.loop !19

226:                                              ; preds = %154
  %227 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 1
  %228 = load double, ptr %227, align 8, !tbaa !11
  %229 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %230 = load double, ptr %229, align 16, !tbaa !11
  %231 = fsub double %228, %230
  %232 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 2
  %233 = load double, ptr %232, align 16, !tbaa !11
  %234 = getelementptr inbounds [3 x double], ptr %11, i64 0, i64 0
  %235 = load double, ptr %234, align 16, !tbaa !11
  %236 = fsub double %233, %235
  %237 = fdiv double %231, %236
  %238 = load ptr, ptr %5, align 8, !tbaa !5
  store double %237, ptr %238, align 8, !tbaa !11
  %239 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 1
  %240 = load double, ptr %239, align 8, !tbaa !11
  %241 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %242 = load double, ptr %241, align 16, !tbaa !11
  %243 = fsub double %240, %242
  %244 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 2
  %245 = load double, ptr %244, align 16, !tbaa !11
  %246 = getelementptr inbounds [3 x double], ptr %14, i64 0, i64 0
  %247 = load double, ptr %246, align 16, !tbaa !11
  %248 = fsub double %245, %247
  %249 = fdiv double %243, %248
  %250 = load ptr, ptr %6, align 8, !tbaa !5
  store double %249, ptr %250, align 8, !tbaa !11
  %251 = load double, ptr %17, align 8, !tbaa !11
  %252 = fcmp oeq double %251, 0.000000e+00
  br i1 %252, label %253, label %256

253:                                              ; preds = %226
  %254 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #7
  %255 = fneg double %254
  br label %268

256:                                              ; preds = %226
  %257 = load double, ptr %18, align 8, !tbaa !11
  %258 = fcmp oeq double %257, 0.000000e+00
  br i1 %258, label %259, label %261

259:                                              ; preds = %256
  %260 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #7
  br label %266

261:                                              ; preds = %256
  %262 = load double, ptr %17, align 8, !tbaa !11
  %263 = load double, ptr %18, align 8, !tbaa !11
  %264 = fdiv double %262, %263
  %265 = call double @log10(double noundef %264) #7
  br label %266

266:                                              ; preds = %261, %259
  %267 = phi double [ %260, %259 ], [ %265, %261 ]
  br label %268

268:                                              ; preds = %266, %253
  %269 = phi double [ %255, %253 ], [ %267, %266 ]
  %270 = load ptr, ptr %7, align 8, !tbaa !5
  store double %269, ptr %270, align 8, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %14) #7
  call void @llvm.lifetime.end.p0(i64 24, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #7
  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: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5arrayIdLm8EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKSt5arrayIdLm8EESt6vectorIS3_SaIS3_EEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) #2 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) #2 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) #2 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #2 align 2

; Function Attrs: nounwind
declare double @log10(double noundef) #6

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 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #6 = { 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 #7 = { 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 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{i64 0, i64 64, !16}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = distinct !{!19, !18}


; Optimized IR (opt -passes='default<O3>'):
target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-i128:128-f80:128-n8:16:32:64-S128"
target triple = "x86_64-unknown-linux-gnu"

%"class.__gnu_cxx::__normal_iterator" = type { ptr }
%"class.std::reverse_iterator" = type { %"class.__gnu_cxx::__normal_iterator" }
%"struct.std::array" = type { [8 x double] }

; Function Attrs: mustprogress nounwind uwtable
define dso_local void @_Z13getWetIndicesRdS_S_RKSt6vectorIS0_ISt5arrayIdLm8EESaIS2_EESaIS4_EE(ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %0, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %1, ptr nocapture noundef nonnull writeonly align 8 dereferenceable(8) %2, ptr noundef nonnull align 8 dereferenceable(24) %3) local_unnamed_addr #0 {
  %5 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %6 = alloca %"class.std::reverse_iterator", align 8
  %7 = alloca %"class.__gnu_cxx::__normal_iterator", align 8
  %8 = alloca %"class.std::reverse_iterator", align 8
  %9 = alloca %"struct.std::array", align 8
  %10 = alloca double, align 8
  %11 = alloca double, align 8
  %12 = alloca %"struct.std::array", align 8
  %13 = alloca double, align 8
  %14 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %5) #6
  %15 = tail call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2) #6
  %16 = tail call ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %15) #6
  store ptr %16, ptr %5, align 8
  %17 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5arrayIdLm8EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %5) #6
  %18 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %17, i64 noundef 0) #6
  %19 = load double, ptr %18, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %6) #6
  %20 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2) #6
  call void @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %6, ptr noundef nonnull align 8 dereferenceable(24) %20) #6
  %21 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKSt5arrayIdLm8EESt6vectorIS3_SaIS3_EEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %6)
  %22 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %21, i64 noundef 0) #6
  %23 = load double, ptr %22, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %5) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %7) #6
  %24 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 3) #6
  %25 = call ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24) %24) #6
  store ptr %25, ptr %7, align 8
  %26 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5arrayIdLm8EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %7) #6
  %27 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %26, i64 noundef 0) #6
  %28 = load double, ptr %27, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %8) #6
  %29 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 3) #6
  call void @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE6rbeginEv(ptr dead_on_unwind nonnull writable sret(%"class.std::reverse_iterator") align 8 %8, ptr noundef nonnull align 8 dereferenceable(24) %29) #6
  %30 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKSt5arrayIdLm8EESt6vectorIS3_SaIS3_EEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8) %8)
  %31 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %30, i64 noundef 0) #6
  %32 = load double, ptr %31, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %7) #6
  %33 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 3) #6
  %34 = call noundef i64 @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #6
  %35 = icmp ugt i64 %34, 1
  br i1 %35, label %.lr.ph, label %.preheader

.preheader:                                       ; preds = %87, %4
  %.059.lcssa = phi double [ 0.000000e+00, %4 ], [ %58, %87 ]
  %.sroa.0.0.lcssa = phi double [ %28, %4 ], [ %.sroa.0.1, %87 ]
  %36 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2) #6
  %37 = call noundef i64 @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %36) #6
  %38 = icmp ugt i64 %37, 1
  br i1 %38, label %.lr.ph67, label %._crit_edge

.lr.ph:                                           ; preds = %4, %87
  %.sroa.0.062 = phi double [ %.sroa.0.1, %87 ], [ %28, %4 ]
  %.05761 = phi i64 [ %88, %87 ], [ 1, %4 ]
  %.05960 = phi double [ %58, %87 ], [ 0.000000e+00, %4 ]
  %39 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 3) #6
  %40 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %39, i64 noundef %.05761) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %9) #6
  %41 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 3) #6
  %42 = add i64 %.05761, -1
  %43 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %41, i64 noundef %42) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %9, ptr noundef nonnull align 8 dereferenceable(64) %43, i64 64, i1 false), !tbaa.struct !9
  %44 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %9, i64 noundef 0) #6
  %45 = load double, ptr %44, align 8, !tbaa !5
  %46 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %40, i64 noundef 0) #6
  %47 = load double, ptr %46, align 8, !tbaa !5
  %48 = fsub double %45, %47
  %49 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %9, i64 noundef 1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %10) #6
  store double 0.000000e+00, ptr %10, align 8, !tbaa !5
  %50 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %49, ptr noundef nonnull align 8 dereferenceable(8) %10)
  %51 = load double, ptr %50, align 8, !tbaa !5
  %52 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %40, i64 noundef 1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %11) #6
  store double 0.000000e+00, ptr %11, align 8, !tbaa !5
  %53 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3maxIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %52, ptr noundef nonnull align 8 dereferenceable(8) %11)
  %54 = load double, ptr %53, align 8, !tbaa !5
  %55 = fadd double %51, %54
  %56 = fmul double %48, %55
  %57 = fmul double %56, 5.000000e-01
  %58 = fadd double %.05960, %57
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %10) #6
  %59 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %40, i64 noundef 1) #6
  %60 = load double, ptr %59, align 8, !tbaa !5
  %61 = fcmp oeq double %60, 0.000000e+00
  br i1 %61, label %69, label %62

62:                                               ; preds = %.lr.ph
  %63 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %40, i64 noundef 1) #6
  %64 = load double, ptr %63, align 8, !tbaa !5
  %65 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %9, i64 noundef 1) #6
  %66 = load double, ptr %65, align 8, !tbaa !5
  %67 = fmul double %64, %66
  %68 = fcmp olt double %67, 0.000000e+00
  br i1 %68, label %69, label %87

69:                                               ; preds = %62, %.lr.ph
  %70 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %40, i64 noundef 0) #6
  %71 = load double, ptr %70, align 8, !tbaa !5
  %72 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %9, i64 noundef 0) #6
  %73 = load double, ptr %72, align 8, !tbaa !5
  %74 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %40, i64 noundef 0) #6
  %75 = load double, ptr %74, align 8, !tbaa !5
  %76 = fsub double %73, %75
  %77 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %9, i64 noundef 1) #6
  %78 = load double, ptr %77, align 8, !tbaa !5
  %79 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %40, i64 noundef 1) #6
  %80 = load double, ptr %79, align 8, !tbaa !5
  %81 = fsub double %78, %80
  %82 = fdiv double %76, %81
  %83 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %40, i64 noundef 1) #6
  %84 = load double, ptr %83, align 8, !tbaa !5
  %85 = fsub double 0.000000e+00, %84
  %86 = call double @llvm.fmuladd.f64(double %82, double %85, double %71)
  br label %87

87:                                               ; preds = %69, %62
  %.sroa.0.1 = phi double [ %86, %69 ], [ %.sroa.0.062, %62 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %9) #6
  %88 = add nuw i64 %.05761, 1
  %89 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 3) #6
  %90 = call noundef i64 @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %89) #6
  %91 = icmp ult i64 %88, %90
  br i1 %91, label %.lr.ph, label %.preheader, !llvm.loop !11

._crit_edge:                                      ; preds = %147, %.preheader
  %.058.lcssa = phi double [ 0.000000e+00, %.preheader ], [ %118, %147 ]
  %.sroa.030.0.lcssa = phi double [ %19, %.preheader ], [ %.sroa.030.1, %147 ]
  %92 = fsub double 1.000000e+00, %.sroa.030.0.lcssa
  %93 = fsub double %23, %.sroa.030.0.lcssa
  %94 = fdiv double %92, %93
  store double %94, ptr %0, align 8, !tbaa !5
  %95 = fsub double 0.000000e+00, %.sroa.0.0.lcssa
  %96 = fsub double %32, %.sroa.0.0.lcssa
  %97 = fdiv double %95, %96
  store double %97, ptr %1, align 8, !tbaa !5
  %98 = fcmp oeq double %.059.lcssa, 0.000000e+00
  br i1 %98, label %152, label %155

.lr.ph67:                                         ; preds = %.preheader, %147
  %.sroa.030.066 = phi double [ %.sroa.030.1, %147 ], [ %19, %.preheader ]
  %.065 = phi i64 [ %148, %147 ], [ 1, %.preheader ]
  %.05864 = phi double [ %118, %147 ], [ 0.000000e+00, %.preheader ]
  %99 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2) #6
  %100 = add i64 %.065, -1
  %101 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %99, i64 noundef %100) #6
  call void @llvm.lifetime.start.p0(i64 64, ptr nonnull %12) #6
  %102 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2) #6
  %103 = call noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %102, i64 noundef %.065) #6
  call void @llvm.memcpy.p0.p0.i64(ptr noundef nonnull align 8 dereferenceable(64) %12, ptr noundef nonnull align 8 dereferenceable(64) %103, i64 64, i1 false), !tbaa.struct !9
  %104 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %12, i64 noundef 0) #6
  %105 = load double, ptr %104, align 8, !tbaa !5
  %106 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %101, i64 noundef 0) #6
  %107 = load double, ptr %106, align 8, !tbaa !5
  %108 = fsub double %105, %107
  %109 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %12, i64 noundef 1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %13) #6
  store double 0.000000e+00, ptr %13, align 8, !tbaa !5
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %109, ptr noundef nonnull align 8 dereferenceable(8) %13)
  %111 = load double, ptr %110, align 8, !tbaa !5
  %112 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %101, i64 noundef 1) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %14) #6
  store double 0.000000e+00, ptr %14, align 8, !tbaa !5
  %113 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZSt3minIdERKT_S2_S2_(ptr noundef nonnull align 8 dereferenceable(8) %112, ptr noundef nonnull align 8 dereferenceable(8) %14)
  %114 = load double, ptr %113, align 8, !tbaa !5
  %115 = fadd double %111, %114
  %116 = fmul double %108, %115
  %117 = fmul double %116, 5.000000e-01
  %118 = fsub double %.05864, %117
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %13) #6
  %119 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %101, i64 noundef 1) #6
  %120 = load double, ptr %119, align 8, !tbaa !5
  %121 = fcmp oeq double %120, 0.000000e+00
  br i1 %121, label %129, label %122

122:                                              ; preds = %.lr.ph67
  %123 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %101, i64 noundef 1) #6
  %124 = load double, ptr %123, align 8, !tbaa !5
  %125 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %12, i64 noundef 1) #6
  %126 = load double, ptr %125, align 8, !tbaa !5
  %127 = fmul double %124, %126
  %128 = fcmp olt double %127, 0.000000e+00
  br i1 %128, label %129, label %147

129:                                              ; preds = %122, %.lr.ph67
  %130 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %101, i64 noundef 0) #6
  %131 = load double, ptr %130, align 8, !tbaa !5
  %132 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %12, i64 noundef 0) #6
  %133 = load double, ptr %132, align 8, !tbaa !5
  %134 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %101, i64 noundef 0) #6
  %135 = load double, ptr %134, align 8, !tbaa !5
  %136 = fsub double %133, %135
  %137 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %12, i64 noundef 1) #6
  %138 = load double, ptr %137, align 8, !tbaa !5
  %139 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %101, i64 noundef 1) #6
  %140 = load double, ptr %139, align 8, !tbaa !5
  %141 = fsub double %138, %140
  %142 = fdiv double %136, %141
  %143 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64) %101, i64 noundef 1) #6
  %144 = load double, ptr %143, align 8, !tbaa !5
  %145 = fsub double 0.000000e+00, %144
  %146 = call double @llvm.fmuladd.f64(double %142, double %145, double %131)
  br label %147

147:                                              ; preds = %129, %122
  %.sroa.030.1 = phi double [ %146, %129 ], [ %.sroa.030.066, %122 ]
  call void @llvm.lifetime.end.p0(i64 64, ptr nonnull %12) #6
  %148 = add nuw i64 %.065, 1
  %149 = call noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %3, i64 noundef 2) #6
  %150 = call noundef i64 @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %149) #6
  %151 = icmp ult i64 %148, %150
  br i1 %151, label %.lr.ph67, label %._crit_edge, !llvm.loop !13

152:                                              ; preds = %._crit_edge
  %153 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #6
  %154 = fneg double %153
  br label %162

155:                                              ; preds = %._crit_edge
  %156 = fcmp oeq double %.058.lcssa, 0.000000e+00
  br i1 %156, label %157, label %159

157:                                              ; preds = %155
  %158 = call noundef double @_ZNSt14numeric_limitsIdE8infinityEv() #6
  br label %162

159:                                              ; preds = %155
  %160 = fdiv double %.059.lcssa, %.058.lcssa
  %161 = call double @log10(double noundef %160) #6
  br label %162

162:                                              ; preds = %157, %159, %152
  %163 = phi double [ %154, %152 ], [ %158, %157 ], [ %161, %159 ]
  store double %163, ptr %2, align 8, !tbaa !5
  ret void
}

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(24) ptr @_ZNKSt6vectorIS_ISt5arrayIdLm8EESaIS1_EESaIS3_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE5beginEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNK9__gnu_cxx17__normal_iteratorIPKSt5arrayIdLm8EESt6vectorIS2_SaIS2_EEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(8) ptr @_ZNKSt5arrayIdLm8EEixEm(ptr noundef nonnull align 8 dereferenceable(64), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE6rbeginEv(ptr dead_on_unwind noalias writable sret(%"class.std::reverse_iterator") align 8, ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt16reverse_iteratorIN9__gnu_cxx17__normal_iteratorIPKSt5arrayIdLm8EESt6vectorIS3_SaIS3_EEEEEdeEv(ptr noundef nonnull align 8 dereferenceable(8)) local_unnamed_addr #0 align 2

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24)) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef nonnull align 8 dereferenceable(64) ptr @_ZNKSt6vectorISt5arrayIdLm8EESaIS1_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

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

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

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

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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef double @_ZNSt14numeric_limitsIdE8infinityEv() local_unnamed_addr #0 align 2

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

attributes #0 = { mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #2 = { mustprogress nocallback nofree nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { inlinehint mustprogress nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #5 = { 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 #6 = { 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 = !{!"double", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{i64 0, i64 64, !10}
!10 = !{!7, !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = distinct !{!13, !12}


; Effective O3 passes: CorrelatedValuePropagationPass,EarlyCSEPass,GVNPass,GlobalOptPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,SROAPass,SimplifyCFGPass,TailCallElimPass