; LLVM IR from kylechampley/XrayPhysics :: src/xsec.ll (ZN4xsec5sigmaEifi)

; 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.xsec = type { [101 x i32], %"class.std::vector", %"class.std::vector", %"class.std::vector", [101 x i32], %"class.std::vector", %"class.std::vector", %"class.std::vector", [101 x i32], %"class.std::vector", %"class.std::vector", %"class.std::vector", [101 x i32], %"class.std::vector", %"class.std::vector", %"class.std::vector", [101 x i32], %"class.std::vector", %"class.std::vector", %"class.std::vector" }
%"class.std::vector" = type { %"struct.std::_Vector_base" }
%"struct.std::_Vector_base" = type { %"struct.std::_Vector_base<float *, std::allocator<float *>>::_Vector_impl" }
%"struct.std::_Vector_base<float *, std::allocator<float *>>::_Vector_impl" = type { %"struct.std::_Vector_base<float *, std::allocator<float *>>::_Vector_impl_data" }
%"struct.std::_Vector_base<float *, std::allocator<float *>>::_Vector_impl_data" = type { ptr, ptr, ptr }

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

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

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

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

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4xsec4initEv(ptr noundef nonnull align 8 dereferenceable(2400)) #2 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3logf(float noundef) #3

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN4xsec9logInterpEfffff(ptr noundef nonnull align 8 dereferenceable(2400), float noundef, float noundef, float noundef, float noundef, float noundef) #2 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN4xsec5sigmaEifi(ptr noundef nonnull align 8 dereferenceable(2400) %0, i32 noundef %1, float noundef %2, i32 noundef %3) #2 align 2 {
  %5 = alloca float, align 4
  %6 = alloca ptr, align 8
  %7 = alloca i32, align 4
  %8 = alloca float, align 4
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca float, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca ptr, align 8
  %16 = alloca ptr, align 8
  %17 = alloca ptr, align 8
  %18 = alloca i32, align 4
  %19 = alloca float, align 4
  store ptr %0, ptr %6, align 8, !tbaa !5
  store i32 %1, ptr %7, align 4, !tbaa !9
  store float %2, ptr %8, align 4, !tbaa !11
  store i32 %3, ptr %9, align 4, !tbaa !9
  %20 = load ptr, ptr %6, align 8
  %21 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 1
  %22 = call noundef i64 @_ZNKSt6vectorIPfSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #5
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %40, label %24

24:                                               ; preds = %4
  %25 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 5
  %26 = call noundef i64 @_ZNKSt6vectorIPfSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %25) #5
  %27 = icmp eq i64 %26, 0
  br i1 %27, label %40, label %28

28:                                               ; preds = %24
  %29 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 9
  %30 = call noundef i64 @_ZNKSt6vectorIPfSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %29) #5
  %31 = icmp eq i64 %30, 0
  br i1 %31, label %40, label %32

32:                                               ; preds = %28
  %33 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 13
  %34 = call noundef i64 @_ZNKSt6vectorIPfSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %33) #5
  %35 = icmp eq i64 %34, 0
  br i1 %35, label %40, label %36

36:                                               ; preds = %32
  %37 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 17
  %38 = call noundef i64 @_ZNKSt6vectorIPfSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %37) #5
  %39 = icmp eq i64 %38, 0
  br i1 %39, label %40, label %42

40:                                               ; preds = %36, %32, %28, %24, %4
  %41 = call noundef zeroext i1 @_ZN4xsec4initEv(ptr noundef nonnull align 8 dereferenceable(2400) %20)
  br label %42

42:                                               ; preds = %40, %36
  %43 = load i32, ptr %7, align 4, !tbaa !9
  %44 = icmp slt i32 %43, 1
  br i1 %44, label %55, label %45

45:                                               ; preds = %42
  %46 = load i32, ptr %7, align 4, !tbaa !9
  %47 = icmp sgt i32 %46, 100
  br i1 %47, label %55, label %48

48:                                               ; preds = %45
  %49 = load float, ptr %8, align 4, !tbaa !11
  %50 = fpext float %49 to double
  %51 = fcmp olt double %50, 1.000000e+00
  br i1 %51, label %55, label %52

52:                                               ; preds = %48
  %53 = load float, ptr %8, align 4, !tbaa !11
  %54 = fcmp ogt float %53, 2.000000e+04
  br i1 %54, label %55, label %56

55:                                               ; preds = %52, %48, %45, %42
  store float 0.000000e+00, ptr %5, align 4
  br label %268

56:                                               ; preds = %52
  %57 = load float, ptr %8, align 4, !tbaa !11
  %58 = fcmp ogt float %57, 2.000000e+04
  br i1 %58, label %59, label %80

59:                                               ; preds = %56
  %60 = load i32, ptr %7, align 4, !tbaa !9
  %61 = sitofp i32 %60 to float
  %62 = load i32, ptr %9, align 4, !tbaa !9
  %63 = call noundef float @_ZN4xsec5sigmaEffi(ptr noundef nonnull align 8 dereferenceable(2400) %20, float noundef 2.000000e+04, float noundef %61, i32 noundef %62)
  %64 = fpext float %63 to double
  %65 = load float, ptr %8, align 4, !tbaa !11
  %66 = fpext float %65 to double
  %67 = fadd double %66, 1.000000e+00
  %68 = fsub double %67, 2.000000e+04
  %69 = load i32, ptr %7, align 4, !tbaa !9
  %70 = sitofp i32 %69 to float
  %71 = load i32, ptr %9, align 4, !tbaa !9
  %72 = call noundef float @_ZN4xsec5sigmaEffi(ptr noundef nonnull align 8 dereferenceable(2400) %20, float noundef 1.999900e+04, float noundef %70, i32 noundef %71)
  %73 = load float, ptr %8, align 4, !tbaa !11
  %74 = fsub float %73, 2.000000e+04
  %75 = fmul float %72, %74
  %76 = fpext float %75 to double
  %77 = fneg double %76
  %78 = call double @llvm.fmuladd.f64(double %64, double %68, double %77)
  %79 = fptrunc double %78 to float
  store float %79, ptr %5, align 4
  br label %268

80:                                               ; preds = %56
  br label %81

81:                                               ; preds = %80
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #5
  %82 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %82, ptr %10, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %83 = load i32, ptr %9, align 4, !tbaa !9
  store i32 %83, ptr %11, align 4, !tbaa !9
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = icmp slt i32 %84, 0
  br i1 %85, label %89, label %86

86:                                               ; preds = %81
  %87 = load i32, ptr %9, align 4, !tbaa !9
  %88 = icmp sgt i32 %87, 4
  br i1 %88, label %89, label %90

89:                                               ; preds = %86, %81
  store i32 0, ptr %10, align 4, !tbaa !9
  store i32 4, ptr %11, align 4, !tbaa !9
  br label %90

90:                                               ; preds = %89, %86
  %91 = load i32, ptr %7, align 4, !tbaa !9
  %92 = sub nsw i32 %91, 1
  store i32 %92, ptr %7, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  store float 0.000000e+00, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #5
  %93 = load i32, ptr %10, align 4, !tbaa !9
  store i32 %93, ptr %13, align 4, !tbaa !9
  br label %94

94:                                               ; preds = %263, %90
  %95 = load i32, ptr %13, align 4, !tbaa !9
  %96 = load i32, ptr %11, align 4, !tbaa !9
  %97 = icmp sle i32 %95, %96
  br i1 %97, label %99, label %98

98:                                               ; preds = %94
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #5
  br label %266

99:                                               ; preds = %94
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  store i32 0, ptr %14, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 8, ptr %15) #5
  store ptr null, ptr %15, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  store ptr null, ptr %16, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %17) #5
  store ptr null, ptr %17, align 8, !tbaa !5
  %100 = load i32, ptr %13, align 4, !tbaa !9
  switch i32 %100, label %206 [
    i32 0, label %101
    i32 1, label %122
    i32 2, label %143
    i32 3, label %164
    i32 4, label %185
  ]

101:                                              ; preds = %99
  %102 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 0
  %103 = load i32, ptr %7, align 4, !tbaa !9
  %104 = sext i32 %103 to i64
  %105 = getelementptr inbounds [101 x i32], ptr %102, i64 0, i64 %104
  %106 = load i32, ptr %105, align 4, !tbaa !9
  store i32 %106, ptr %14, align 4, !tbaa !9
  %107 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 1
  %108 = load i32, ptr %7, align 4, !tbaa !9
  %109 = sext i32 %108 to i64
  %110 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %107, i64 noundef %109) #5
  %111 = load ptr, ptr %110, align 8, !tbaa !5
  store ptr %111, ptr %15, align 8, !tbaa !5
  %112 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 2
  %113 = load i32, ptr %7, align 4, !tbaa !9
  %114 = sext i32 %113 to i64
  %115 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %112, i64 noundef %114) #5
  %116 = load ptr, ptr %115, align 8, !tbaa !5
  store ptr %116, ptr %16, align 8, !tbaa !5
  %117 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 3
  %118 = load i32, ptr %7, align 4, !tbaa !9
  %119 = sext i32 %118 to i64
  %120 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %117, i64 noundef %119) #5
  %121 = load ptr, ptr %120, align 8, !tbaa !5
  store ptr %121, ptr %17, align 8, !tbaa !5
  br label %207

122:                                              ; preds = %99
  %123 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 4
  %124 = load i32, ptr %7, align 4, !tbaa !9
  %125 = sext i32 %124 to i64
  %126 = getelementptr inbounds [101 x i32], ptr %123, i64 0, i64 %125
  %127 = load i32, ptr %126, align 4, !tbaa !9
  store i32 %127, ptr %14, align 4, !tbaa !9
  %128 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 5
  %129 = load i32, ptr %7, align 4, !tbaa !9
  %130 = sext i32 %129 to i64
  %131 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %128, i64 noundef %130) #5
  %132 = load ptr, ptr %131, align 8, !tbaa !5
  store ptr %132, ptr %15, align 8, !tbaa !5
  %133 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 6
  %134 = load i32, ptr %7, align 4, !tbaa !9
  %135 = sext i32 %134 to i64
  %136 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %133, i64 noundef %135) #5
  %137 = load ptr, ptr %136, align 8, !tbaa !5
  store ptr %137, ptr %16, align 8, !tbaa !5
  %138 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 7
  %139 = load i32, ptr %7, align 4, !tbaa !9
  %140 = sext i32 %139 to i64
  %141 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %138, i64 noundef %140) #5
  %142 = load ptr, ptr %141, align 8, !tbaa !5
  store ptr %142, ptr %17, align 8, !tbaa !5
  br label %207

143:                                              ; preds = %99
  %144 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 8
  %145 = load i32, ptr %7, align 4, !tbaa !9
  %146 = sext i32 %145 to i64
  %147 = getelementptr inbounds [101 x i32], ptr %144, i64 0, i64 %146
  %148 = load i32, ptr %147, align 4, !tbaa !9
  store i32 %148, ptr %14, align 4, !tbaa !9
  %149 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 9
  %150 = load i32, ptr %7, align 4, !tbaa !9
  %151 = sext i32 %150 to i64
  %152 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %149, i64 noundef %151) #5
  %153 = load ptr, ptr %152, align 8, !tbaa !5
  store ptr %153, ptr %15, align 8, !tbaa !5
  %154 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 10
  %155 = load i32, ptr %7, align 4, !tbaa !9
  %156 = sext i32 %155 to i64
  %157 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %154, i64 noundef %156) #5
  %158 = load ptr, ptr %157, align 8, !tbaa !5
  store ptr %158, ptr %16, align 8, !tbaa !5
  %159 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 11
  %160 = load i32, ptr %7, align 4, !tbaa !9
  %161 = sext i32 %160 to i64
  %162 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %159, i64 noundef %161) #5
  %163 = load ptr, ptr %162, align 8, !tbaa !5
  store ptr %163, ptr %17, align 8, !tbaa !5
  br label %207

164:                                              ; preds = %99
  %165 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 12
  %166 = load i32, ptr %7, align 4, !tbaa !9
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds [101 x i32], ptr %165, i64 0, i64 %167
  %169 = load i32, ptr %168, align 4, !tbaa !9
  store i32 %169, ptr %14, align 4, !tbaa !9
  %170 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 13
  %171 = load i32, ptr %7, align 4, !tbaa !9
  %172 = sext i32 %171 to i64
  %173 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %170, i64 noundef %172) #5
  %174 = load ptr, ptr %173, align 8, !tbaa !5
  store ptr %174, ptr %15, align 8, !tbaa !5
  %175 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 14
  %176 = load i32, ptr %7, align 4, !tbaa !9
  %177 = sext i32 %176 to i64
  %178 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %175, i64 noundef %177) #5
  %179 = load ptr, ptr %178, align 8, !tbaa !5
  store ptr %179, ptr %16, align 8, !tbaa !5
  %180 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 15
  %181 = load i32, ptr %7, align 4, !tbaa !9
  %182 = sext i32 %181 to i64
  %183 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %180, i64 noundef %182) #5
  %184 = load ptr, ptr %183, align 8, !tbaa !5
  store ptr %184, ptr %17, align 8, !tbaa !5
  br label %207

185:                                              ; preds = %99
  %186 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 16
  %187 = load i32, ptr %7, align 4, !tbaa !9
  %188 = sext i32 %187 to i64
  %189 = getelementptr inbounds [101 x i32], ptr %186, i64 0, i64 %188
  %190 = load i32, ptr %189, align 4, !tbaa !9
  store i32 %190, ptr %14, align 4, !tbaa !9
  %191 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 17
  %192 = load i32, ptr %7, align 4, !tbaa !9
  %193 = sext i32 %192 to i64
  %194 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %191, i64 noundef %193) #5
  %195 = load ptr, ptr %194, align 8, !tbaa !5
  store ptr %195, ptr %15, align 8, !tbaa !5
  %196 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 18
  %197 = load i32, ptr %7, align 4, !tbaa !9
  %198 = sext i32 %197 to i64
  %199 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %196, i64 noundef %198) #5
  %200 = load ptr, ptr %199, align 8, !tbaa !5
  store ptr %200, ptr %16, align 8, !tbaa !5
  %201 = getelementptr inbounds %class.xsec, ptr %20, i32 0, i32 19
  %202 = load i32, ptr %7, align 4, !tbaa !9
  %203 = sext i32 %202 to i64
  %204 = call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %201, i64 noundef %203) #5
  %205 = load ptr, ptr %204, align 8, !tbaa !5
  store ptr %205, ptr %17, align 8, !tbaa !5
  br label %207

206:                                              ; preds = %99
  br label %207

207:                                              ; preds = %206, %185, %164, %143, %122, %101
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  store i32 0, ptr %18, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  store float 0.000000e+00, ptr %19, align 4, !tbaa !11
  br label %208

208:                                              ; preds = %222, %207
  %209 = load i32, ptr %18, align 4, !tbaa !9
  %210 = load i32, ptr %14, align 4, !tbaa !9
  %211 = icmp slt i32 %209, %210
  br i1 %211, label %212, label %225

212:                                              ; preds = %208
  %213 = load float, ptr %8, align 4, !tbaa !11
  %214 = load ptr, ptr %17, align 8, !tbaa !5
  %215 = load i32, ptr %18, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds float, ptr %214, i64 %216
  %218 = load float, ptr %217, align 4, !tbaa !11
  %219 = fcmp olt float %213, %218
  br i1 %219, label %220, label %221

220:                                              ; preds = %212
  br label %225

221:                                              ; preds = %212
  br label %222

222:                                              ; preds = %221
  %223 = load i32, ptr %18, align 4, !tbaa !9
  %224 = add nsw i32 %223, 1
  store i32 %224, ptr %18, align 4, !tbaa !9
  br label %208, !llvm.loop !13

225:                                              ; preds = %220, %208
  %226 = load i32, ptr %18, align 4, !tbaa !9
  %227 = icmp sgt i32 %226, 0
  br i1 %227, label %228, label %258

228:                                              ; preds = %225
  %229 = load i32, ptr %18, align 4, !tbaa !9
  %230 = load i32, ptr %14, align 4, !tbaa !9
  %231 = icmp slt i32 %229, %230
  br i1 %231, label %232, label %258

232:                                              ; preds = %228
  %233 = load float, ptr %8, align 4, !tbaa !11
  %234 = call noundef float @_ZSt3logf(float noundef %233)
  %235 = load ptr, ptr %16, align 8, !tbaa !5
  %236 = load i32, ptr %18, align 4, !tbaa !9
  %237 = sub nsw i32 %236, 1
  %238 = sext i32 %237 to i64
  %239 = getelementptr inbounds float, ptr %235, i64 %238
  %240 = load float, ptr %239, align 4, !tbaa !11
  %241 = load ptr, ptr %16, align 8, !tbaa !5
  %242 = load i32, ptr %18, align 4, !tbaa !9
  %243 = sext i32 %242 to i64
  %244 = getelementptr inbounds float, ptr %241, i64 %243
  %245 = load float, ptr %244, align 4, !tbaa !11
  %246 = load ptr, ptr %15, align 8, !tbaa !5
  %247 = load i32, ptr %18, align 4, !tbaa !9
  %248 = sub nsw i32 %247, 1
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds float, ptr %246, i64 %249
  %251 = load float, ptr %250, align 4, !tbaa !11
  %252 = load ptr, ptr %15, align 8, !tbaa !5
  %253 = load i32, ptr %18, align 4, !tbaa !9
  %254 = sext i32 %253 to i64
  %255 = getelementptr inbounds float, ptr %252, i64 %254
  %256 = load float, ptr %255, align 4, !tbaa !11
  %257 = call noundef float @_ZN4xsec9logInterpEfffff(ptr noundef nonnull align 8 dereferenceable(2400) %20, float noundef %234, float noundef %240, float noundef %245, float noundef %251, float noundef %256)
  store float %257, ptr %19, align 4, !tbaa !11
  br label %259

258:                                              ; preds = %228, %225
  store float 0.000000e+00, ptr %19, align 4, !tbaa !11
  br label %259

259:                                              ; preds = %258, %232
  %260 = load float, ptr %19, align 4, !tbaa !11
  %261 = load float, ptr %12, align 4, !tbaa !11
  %262 = fadd float %261, %260
  store float %262, ptr %12, align 4, !tbaa !11
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %263

263:                                              ; preds = %259
  %264 = load i32, ptr %13, align 4, !tbaa !9
  %265 = add nsw i32 %264, 1
  store i32 %265, ptr %13, align 4, !tbaa !9
  br label %94, !llvm.loop !15

266:                                              ; preds = %98
  %267 = load float, ptr %12, align 4, !tbaa !11
  store float %267, ptr %5, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #5
  br label %268

268:                                              ; preds = %266, %59, %55
  %269 = load float, ptr %5, align 4
  ret float %269
}

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN4xsec5sigmaEffi(ptr noundef nonnull align 8 dereferenceable(2400), float noundef, float noundef, i32 noundef) #2 align 2

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

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

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

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


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

; Function Attrs: mustprogress nounwind uwtable
declare dso_local noundef i64 @_ZNKSt6vectorIPfSaIS0_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(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24), i64 noundef) local_unnamed_addr #0 align 2

; Function Attrs: mustprogress uwtable
declare dso_local noundef zeroext i1 @_ZN4xsec4initEv(ptr noundef nonnull align 8 dereferenceable(2400)) local_unnamed_addr #1 align 2

; Function Attrs: inlinehint mustprogress nounwind uwtable
declare dso_local noundef float @_ZSt3logf(float noundef) local_unnamed_addr #2

; Function Attrs: mustprogress uwtable
declare dso_local noundef float @_ZN4xsec9logInterpEfffff(ptr noundef nonnull align 8 dereferenceable(2400), float noundef, float noundef, float noundef, float noundef, float noundef) local_unnamed_addr #1 align 2

; Function Attrs: mustprogress uwtable
define dso_local noundef float @_ZN4xsec5sigmaEifi(ptr noundef nonnull align 8 dereferenceable(2400) %0, i32 noundef %1, float noundef %2, i32 noundef %3) local_unnamed_addr #1 align 2 {
  %5 = getelementptr inbounds i8, ptr %0, i64 408
  %6 = tail call noundef i64 @_ZNKSt6vectorIPfSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %5) #4
  %7 = icmp eq i64 %6, 0
  br i1 %7, label %24, label %8

8:                                                ; preds = %4
  %9 = getelementptr inbounds i8, ptr %0, i64 888
  %10 = tail call noundef i64 @_ZNKSt6vectorIPfSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %9) #4
  %11 = icmp eq i64 %10, 0
  br i1 %11, label %24, label %12

12:                                               ; preds = %8
  %13 = getelementptr inbounds i8, ptr %0, i64 1368
  %14 = tail call noundef i64 @_ZNKSt6vectorIPfSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %13) #4
  %15 = icmp eq i64 %14, 0
  br i1 %15, label %24, label %16

16:                                               ; preds = %12
  %17 = getelementptr inbounds i8, ptr %0, i64 1848
  %18 = tail call noundef i64 @_ZNKSt6vectorIPfSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %17) #4
  %19 = icmp eq i64 %18, 0
  br i1 %19, label %24, label %20

20:                                               ; preds = %16
  %21 = getelementptr inbounds i8, ptr %0, i64 2328
  %22 = tail call noundef i64 @_ZNKSt6vectorIPfSaIS0_EE4sizeEv(ptr noundef nonnull align 8 dereferenceable(24) %21) #4
  %23 = icmp eq i64 %22, 0
  br i1 %23, label %24, label %26

24:                                               ; preds = %20, %16, %12, %8, %4
  %25 = tail call noundef zeroext i1 @_ZN4xsec4initEv(ptr noundef nonnull align 8 dereferenceable(2400) %0)
  br label %26

26:                                               ; preds = %24, %20
  %27 = add i32 %1, -101
  %or.cond = icmp ult i32 %27, -100
  br i1 %or.cond, label %.loopexit, label %28

28:                                               ; preds = %26
  %29 = fcmp olt float %2, 1.000000e+00
  %30 = fcmp ogt float %2, 2.000000e+04
  %or.cond3 = or i1 %29, %30
  br i1 %or.cond3, label %.loopexit, label %.lr.ph93

.lr.ph93:                                         ; preds = %28
  %spec.select83 = tail call i32 @llvm.umin.i32(i32 %3, i32 4)
  %or.cond5 = icmp ugt i32 %3, 4
  %spec.select = select i1 %or.cond5, i32 0, i32 %3
  %31 = add nsw i32 %1, -1
  %32 = getelementptr inbounds i8, ptr %0, i64 1920
  %33 = zext nneg i32 %31 to i64
  %34 = getelementptr inbounds [101 x i32], ptr %32, i64 0, i64 %33
  %35 = getelementptr inbounds i8, ptr %0, i64 2328
  %36 = getelementptr inbounds i8, ptr %0, i64 2352
  %37 = getelementptr inbounds i8, ptr %0, i64 2376
  %38 = getelementptr inbounds i8, ptr %0, i64 1440
  %39 = getelementptr inbounds [101 x i32], ptr %38, i64 0, i64 %33
  %40 = getelementptr inbounds i8, ptr %0, i64 1848
  %41 = getelementptr inbounds i8, ptr %0, i64 1872
  %42 = getelementptr inbounds i8, ptr %0, i64 1896
  %43 = getelementptr inbounds i8, ptr %0, i64 960
  %44 = getelementptr inbounds [101 x i32], ptr %43, i64 0, i64 %33
  %45 = getelementptr inbounds i8, ptr %0, i64 1368
  %46 = getelementptr inbounds i8, ptr %0, i64 1392
  %47 = getelementptr inbounds i8, ptr %0, i64 1416
  %48 = getelementptr inbounds i8, ptr %0, i64 480
  %49 = getelementptr inbounds [101 x i32], ptr %48, i64 0, i64 %33
  %50 = getelementptr inbounds i8, ptr %0, i64 888
  %51 = getelementptr inbounds i8, ptr %0, i64 912
  %52 = getelementptr inbounds i8, ptr %0, i64 936
  %53 = getelementptr inbounds [101 x i32], ptr %0, i64 0, i64 %33
  %54 = getelementptr inbounds i8, ptr %0, i64 432
  %55 = getelementptr inbounds i8, ptr %0, i64 456
  %umax = tail call i32 @llvm.umax.i32(i32 %spec.select, i32 %spec.select83)
  br label %56

56:                                               ; preds = %.lr.ph93, %.thread
  %.07392 = phi i32 [ %spec.select, %.lr.ph93 ], [ %90, %.thread ]
  %.07491 = phi float [ 0.000000e+00, %.lr.ph93 ], [ %89, %.thread ]
  switch i32 %.07392, label %.thread [
    i32 0, label %61
    i32 1, label %57
    i32 2, label %58
    i32 3, label %59
    i32 4, label %60
  ]

57:                                               ; preds = %56
  br label %61

58:                                               ; preds = %56
  br label %61

59:                                               ; preds = %56
  br label %61

60:                                               ; preds = %56
  br label %61

61:                                               ; preds = %56, %60, %59, %58, %57
  %.sink = phi ptr [ %34, %60 ], [ %39, %59 ], [ %44, %58 ], [ %49, %57 ], [ %53, %56 ]
  %.sink106 = phi ptr [ %35, %60 ], [ %40, %59 ], [ %45, %58 ], [ %50, %57 ], [ %5, %56 ]
  %.sink105 = phi ptr [ %36, %60 ], [ %41, %59 ], [ %46, %58 ], [ %51, %57 ], [ %54, %56 ]
  %.sink104 = phi ptr [ %37, %60 ], [ %42, %59 ], [ %47, %58 ], [ %52, %57 ], [ %55, %56 ]
  %62 = load i32, ptr %.sink, align 4, !tbaa !5
  %63 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.sink106, i64 noundef %33) #4
  %64 = load ptr, ptr %63, align 8, !tbaa !9
  %65 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.sink105, i64 noundef %33) #4
  %66 = load ptr, ptr %65, align 8, !tbaa !9
  %67 = tail call noundef nonnull align 8 dereferenceable(8) ptr @_ZNSt6vectorIPfSaIS0_EEixEm(ptr noundef nonnull align 8 dereferenceable(24) %.sink104, i64 noundef %33) #4
  %68 = load ptr, ptr %67, align 8, !tbaa !9
  %69 = icmp slt i32 %62, 1
  br i1 %69, label %.thread, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %61
  %wide.trip.count = zext nneg i32 %62 to i64
  br label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph.preheader, %73
  %indvars.iv = phi i64 [ 0, %.lr.ph.preheader ], [ %indvars.iv.next, %73 ]
  %70 = getelementptr inbounds float, ptr %68, i64 %indvars.iv
  %71 = load float, ptr %70, align 4, !tbaa !11
  %72 = fcmp ogt float %71, %2
  br i1 %72, label %74, label %73

73:                                               ; preds = %.lr.ph
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.thread, label %.lr.ph, !llvm.loop !13

74:                                               ; preds = %.lr.ph
  %.not82 = icmp eq i64 %indvars.iv, 0
  br i1 %.not82, label %.thread, label %75

75:                                               ; preds = %74
  %76 = tail call noundef float @_ZSt3logf(float noundef %2)
  %77 = add nuw i64 %indvars.iv, 4294967295
  %78 = and i64 %77, 4294967295
  %79 = getelementptr inbounds float, ptr %66, i64 %78
  %80 = load float, ptr %79, align 4, !tbaa !11
  %81 = and i64 %indvars.iv, 4294967295
  %82 = getelementptr inbounds float, ptr %66, i64 %81
  %83 = load float, ptr %82, align 4, !tbaa !11
  %84 = getelementptr inbounds float, ptr %64, i64 %78
  %85 = load float, ptr %84, align 4, !tbaa !11
  %86 = getelementptr inbounds float, ptr %64, i64 %81
  %87 = load float, ptr %86, align 4, !tbaa !11
  %88 = tail call noundef float @_ZN4xsec9logInterpEfffff(ptr noundef nonnull align 8 dereferenceable(2400) %0, float noundef %76, float noundef %80, float noundef %83, float noundef %85, float noundef %87)
  br label %.thread

.thread:                                          ; preds = %73, %56, %61, %74, %75
  %.0 = phi float [ %88, %75 ], [ 0.000000e+00, %74 ], [ 0.000000e+00, %61 ], [ 0.000000e+00, %56 ], [ 0.000000e+00, %73 ]
  %89 = fadd float %.07491, %.0
  %90 = add nuw nsw i32 %.07392, 1
  %exitcond97.not = icmp eq i32 %.07392, %umax
  br i1 %exitcond97.not, label %.loopexit, label %56, !llvm.loop !15

.loopexit:                                        ; preds = %.thread, %26, %28
  %.077 = phi float [ 0.000000e+00, %28 ], [ 0.000000e+00, %26 ], [ %89, %.thread ]
  ret float %.077
}

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

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

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 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 #2 = { 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 #3 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"any pointer", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"float", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}
!15 = distinct !{!15, !14}


; Effective O3 passes: ConstraintEliminationPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopInstSimplifyPass,LoopRotatePass,LoopSimplifyPass,LoopUnrollPass,SCCPPass,SROAPass,SimplifyCFGPass,TailCallElimPass