; LLVM IR from Overload-Technologies/Overload :: Dependencies/soloud/src/audiosource/speech/klatt.ll (ZN5klatt5synthEiPs)

; 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.Element = type { ptr, i8, i8, i8, i8, ptr, ptr, i32, [19 x %class.Interp] }
%class.Interp = type { float, float, i8, i8, i8 }
%class.Slope = type { float, i32 }
%class.klatt = type <{ %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, %class.resonator, i32, float, float, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, float, float, float, float, float, i32, float, float, float, float, float, i32, i32, ptr, i32, %class.klatt_frame, [4 x i8], ptr, i32, i32, %class.Slope, %class.Slope, float, [4 x i8] }>
%class.resonator = type { float, float, float, float, float }
%class.klatt_frame = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }

@_ZL8gElement = external hidden global [69 x %class.Element], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

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

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

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5klatt7parwaveEPs(ptr noundef nonnull align 8 dereferenceable(564), ptr noundef) #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5klatt5synthEiPs(ptr noundef nonnull align 8 dereferenceable(564) %0, i32 noundef %1, ptr noundef %2) #2 align 2 {
  %4 = alloca i32, align 4
  %5 = alloca ptr, align 8
  %6 = alloca i32, align 4
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  %12 = alloca ptr, align 8
  %13 = alloca [19 x %class.Slope], align 16
  %14 = alloca [19 x %class.Slope], align 16
  %15 = alloca i32, align 4
  %16 = alloca float, align 4
  %17 = alloca [19 x float], align 16
  %18 = alloca i32, align 4
  %19 = alloca ptr, align 8
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca i32, align 4
  store ptr %0, ptr %5, align 8, !tbaa !5
  store i32 %1, ptr %6, align 4, !tbaa !9
  store ptr %2, ptr %7, align 8, !tbaa !5
  %24 = load ptr, ptr %5, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr %8) #5
  %25 = load ptr, ptr %7, align 8, !tbaa !5
  store ptr %25, ptr %8, align 8, !tbaa !5
  %26 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 41
  %27 = load i32, ptr %26, align 8, !tbaa !11
  %28 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 39
  %29 = load i32, ptr %28, align 4, !tbaa !17
  %30 = icmp sge i32 %27, %29
  br i1 %30, label %31, label %32

31:                                               ; preds = %3
  store i32 -1, ptr %4, align 4
  store i32 1, ptr %9, align 4
  br label %483

32:                                               ; preds = %3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #5
  %33 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 40
  %34 = load ptr, ptr %33, align 8, !tbaa !18
  %35 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 41
  %36 = load i32, ptr %35, align 8, !tbaa !11
  %37 = add nsw i32 %36, 1
  store i32 %37, ptr %35, align 8, !tbaa !11
  %38 = sext i32 %36 to i64
  %39 = getelementptr inbounds i8, ptr %34, i64 %38
  %40 = load i8, ptr %39, align 1, !tbaa !19
  %41 = zext i8 %40 to i64
  %42 = getelementptr inbounds [69 x %class.Element], ptr @_ZL8gElement, i64 0, i64 %41
  store ptr %42, ptr %10, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #5
  %43 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 40
  %44 = load ptr, ptr %43, align 8, !tbaa !18
  %45 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 41
  %46 = load i32, ptr %45, align 8, !tbaa !11
  %47 = add nsw i32 %46, 1
  store i32 %47, ptr %45, align 8, !tbaa !11
  %48 = sext i32 %46 to i64
  %49 = getelementptr inbounds i8, ptr %44, i64 %48
  %50 = load i8, ptr %49, align 1, !tbaa !19
  %51 = zext i8 %50 to i32
  store i32 %51, ptr %11, align 4, !tbaa !9
  %52 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 41
  %53 = load i32, ptr %52, align 8, !tbaa !11
  %54 = add nsw i32 %53, 1
  store i32 %54, ptr %52, align 8, !tbaa !11
  %55 = load ptr, ptr %10, align 8, !tbaa !5
  %56 = getelementptr inbounds %class.Element, ptr %55, i32 0, i32 1
  %57 = load i8, ptr %56, align 8, !tbaa !20
  %58 = sext i8 %57 to i32
  %59 = icmp eq i32 %58, 31
  br i1 %59, label %60, label %71

60:                                               ; preds = %32
  %61 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 12
  %62 = load i32, ptr %61, align 8, !tbaa !22
  %63 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %64 = getelementptr inbounds %class.klatt_frame, ptr %63, i32 0, i32 0
  store i32 %62, ptr %64, align 4, !tbaa !23
  %65 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %66 = getelementptr inbounds %class.klatt_frame, ptr %65, i32 0, i32 0
  %67 = load i32, ptr %66, align 4, !tbaa !23
  %68 = sitofp i32 %67 to float
  %69 = fmul float 0x3FF19999A0000000, %68
  %70 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 49
  store float %69, ptr %70, align 8, !tbaa !24
  br label %71

71:                                               ; preds = %60, %32
  %72 = load i32, ptr %11, align 4, !tbaa !9
  %73 = icmp sgt i32 %72, 0
  br i1 %73, label %74, label %473

74:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 8, ptr %12) #5
  %75 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 41
  %76 = load i32, ptr %75, align 8, !tbaa !11
  %77 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 39
  %78 = load i32, ptr %77, align 4, !tbaa !17
  %79 = icmp slt i32 %76, %78
  br i1 %79, label %80, label %90

80:                                               ; preds = %74
  %81 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 40
  %82 = load ptr, ptr %81, align 8, !tbaa !18
  %83 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 41
  %84 = load i32, ptr %83, align 8, !tbaa !11
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds i8, ptr %82, i64 %85
  %87 = load i8, ptr %86, align 1, !tbaa !19
  %88 = zext i8 %87 to i64
  %89 = getelementptr inbounds [69 x %class.Element], ptr @_ZL8gElement, i64 0, i64 %88
  br label %91

90:                                               ; preds = %74
  br label %91

91:                                               ; preds = %90, %80
  %92 = phi ptr [ %89, %80 ], [ @_ZL8gElement, %90 ]
  store ptr %92, ptr %12, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 152, ptr %13) #5
  %93 = getelementptr inbounds [19 x %class.Slope], ptr %13, i32 0, i32 0
  %94 = getelementptr inbounds %class.Slope, ptr %93, i64 19
  br label %95

95:                                               ; preds = %95, %91
  %96 = phi ptr [ %93, %91 ], [ %97, %95 ]
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %96)
  %97 = getelementptr inbounds %class.Slope, ptr %96, i64 1
  %98 = icmp eq ptr %97, %94
  br i1 %98, label %99, label %95

99:                                               ; preds = %95
  call void @llvm.lifetime.start.p0(i64 152, ptr %14) #5
  %100 = getelementptr inbounds [19 x %class.Slope], ptr %14, i32 0, i32 0
  %101 = getelementptr inbounds %class.Slope, ptr %100, i64 19
  br label %102

102:                                              ; preds = %102, %99
  %103 = phi ptr [ %100, %99 ], [ %104, %102 ]
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %103)
  %104 = getelementptr inbounds %class.Slope, ptr %103, i64 1
  %105 = icmp eq ptr %104, %101
  br i1 %105, label %106, label %102

106:                                              ; preds = %102
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #5
  %107 = load ptr, ptr %10, align 8, !tbaa !5
  %108 = getelementptr inbounds %class.Element, ptr %107, i32 0, i32 1
  %109 = load i8, ptr %108, align 8, !tbaa !20
  %110 = sext i8 %109 to i32
  %111 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 44
  %112 = load ptr, ptr %111, align 8, !tbaa !25
  %113 = getelementptr inbounds %class.Element, ptr %112, i32 0, i32 1
  %114 = load i8, ptr %113, align 8, !tbaa !20
  %115 = sext i8 %114 to i32
  %116 = icmp sgt i32 %110, %115
  br i1 %116, label %117, label %122

117:                                              ; preds = %106
  %118 = getelementptr inbounds [19 x %class.Slope], ptr %13, i64 0, i64 0
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 44
  %121 = load ptr, ptr %120, align 8, !tbaa !25
  call void @_ZL9set_transP5SlopeP7ElementS2_ii(ptr noundef %118, ptr noundef %119, ptr noundef %121, i32 noundef 0, i32 noundef 115)
  br label %127

122:                                              ; preds = %106
  %123 = getelementptr inbounds [19 x %class.Slope], ptr %13, i64 0, i64 0
  %124 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 44
  %125 = load ptr, ptr %124, align 8, !tbaa !25
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZL9set_transP5SlopeP7ElementS2_ii(ptr noundef %123, ptr noundef %125, ptr noundef %126, i32 noundef 1, i32 noundef 115)
  br label %127

127:                                              ; preds = %122, %117
  %128 = load ptr, ptr %12, align 8, !tbaa !5
  %129 = getelementptr inbounds %class.Element, ptr %128, i32 0, i32 1
  %130 = load i8, ptr %129, align 8, !tbaa !20
  %131 = sext i8 %130 to i32
  %132 = load ptr, ptr %10, align 8, !tbaa !5
  %133 = getelementptr inbounds %class.Element, ptr %132, i32 0, i32 1
  %134 = load i8, ptr %133, align 8, !tbaa !20
  %135 = sext i8 %134 to i32
  %136 = icmp sgt i32 %131, %135
  br i1 %136, label %137, label %141

137:                                              ; preds = %127
  %138 = getelementptr inbounds [19 x %class.Slope], ptr %14, i64 0, i64 0
  %139 = load ptr, ptr %12, align 8, !tbaa !5
  %140 = load ptr, ptr %10, align 8, !tbaa !5
  call void @_ZL9set_transP5SlopeP7ElementS2_ii(ptr noundef %138, ptr noundef %139, ptr noundef %140, i32 noundef 1, i32 noundef 101)
  br label %145

141:                                              ; preds = %127
  %142 = getelementptr inbounds [19 x %class.Slope], ptr %14, i64 0, i64 0
  %143 = load ptr, ptr %10, align 8, !tbaa !5
  %144 = load ptr, ptr %12, align 8, !tbaa !5
  call void @_ZL9set_transP5SlopeP7ElementS2_ii(ptr noundef %142, ptr noundef %143, ptr noundef %144, i32 noundef 0, i32 noundef 101)
  br label %145

145:                                              ; preds = %141, %137
  store i32 0, ptr %15, align 4, !tbaa !9
  br label %146

146:                                              ; preds = %466, %145
  %147 = load i32, ptr %15, align 4, !tbaa !9
  %148 = load i32, ptr %11, align 4, !tbaa !9
  %149 = icmp slt i32 %147, %148
  br i1 %149, label %150, label %472

150:                                              ; preds = %146
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %151 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 49
  %152 = load float, ptr %151, align 8, !tbaa !24
  %153 = fmul float %152, 0x3FE99999A0000000
  store float %153, ptr %16, align 4, !tbaa !26
  call void @llvm.lifetime.start.p0(i64 76, ptr %17) #5
  %154 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 45
  %155 = load i32, ptr %154, align 8, !tbaa !27
  %156 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 46
  %157 = load i32, ptr %156, align 4, !tbaa !28
  %158 = icmp eq i32 %155, %157
  br i1 %158, label %159, label %306

159:                                              ; preds = %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  %160 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 41
  %161 = load i32, ptr %160, align 8, !tbaa !11
  store i32 %161, ptr %18, align 4, !tbaa !9
  %162 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 48
  %163 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 47
  call void @llvm.memcpy.p0.p0.i64(ptr align 8 %163, ptr align 8 %162, i64 8, i1 false), !tbaa.struct !29
  %164 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 45
  store i32 0, ptr %164, align 8, !tbaa !27
  %165 = load i32, ptr %11, align 4, !tbaa !9
  %166 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 46
  store i32 %165, ptr %166, align 4, !tbaa !28
  br label %167

167:                                              ; preds = %304, %159
  %168 = load i32, ptr %18, align 4, !tbaa !9
  %169 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 39
  %170 = load i32, ptr %169, align 4, !tbaa !17
  %171 = icmp sle i32 %168, %170
  br i1 %171, label %172, label %305

172:                                              ; preds = %167
  call void @llvm.lifetime.start.p0(i64 8, ptr %19) #5
  %173 = load i32, ptr %18, align 4, !tbaa !9
  %174 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 39
  %175 = load i32, ptr %174, align 4, !tbaa !17
  %176 = icmp slt i32 %173, %175
  br i1 %176, label %177, label %187

177:                                              ; preds = %172
  %178 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 40
  %179 = load ptr, ptr %178, align 8, !tbaa !18
  %180 = load i32, ptr %18, align 4, !tbaa !9
  %181 = add nsw i32 %180, 1
  store i32 %181, ptr %18, align 4, !tbaa !9
  %182 = sext i32 %180 to i64
  %183 = getelementptr inbounds i8, ptr %179, i64 %182
  %184 = load i8, ptr %183, align 1, !tbaa !19
  %185 = zext i8 %184 to i64
  %186 = getelementptr inbounds [69 x %class.Element], ptr @_ZL8gElement, i64 0, i64 %185
  br label %188

187:                                              ; preds = %172
  br label %188

188:                                              ; preds = %187, %177
  %189 = phi ptr [ %186, %177 ], [ @_ZL8gElement, %187 ]
  store ptr %189, ptr %19, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  %190 = load i32, ptr %18, align 4, !tbaa !9
  %191 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 39
  %192 = load i32, ptr %191, align 4, !tbaa !17
  %193 = icmp slt i32 %190, %192
  br i1 %193, label %194, label %203

194:                                              ; preds = %188
  %195 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 40
  %196 = load ptr, ptr %195, align 8, !tbaa !18
  %197 = load i32, ptr %18, align 4, !tbaa !9
  %198 = add nsw i32 %197, 1
  store i32 %198, ptr %18, align 4, !tbaa !9
  %199 = sext i32 %197 to i64
  %200 = getelementptr inbounds i8, ptr %196, i64 %199
  %201 = load i8, ptr %200, align 1, !tbaa !19
  %202 = zext i8 %201 to i32
  br label %204

203:                                              ; preds = %188
  br label %204

204:                                              ; preds = %203, %194
  %205 = phi i32 [ %202, %194 ], [ 0, %203 ]
  store i32 %205, ptr %20, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %206 = load i32, ptr %18, align 4, !tbaa !9
  %207 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 39
  %208 = load i32, ptr %207, align 4, !tbaa !17
  %209 = icmp slt i32 %206, %208
  br i1 %209, label %210, label %219

210:                                              ; preds = %204
  %211 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 40
  %212 = load ptr, ptr %211, align 8, !tbaa !18
  %213 = load i32, ptr %18, align 4, !tbaa !9
  %214 = add nsw i32 %213, 1
  store i32 %214, ptr %18, align 4, !tbaa !9
  %215 = sext i32 %213 to i64
  %216 = getelementptr inbounds i8, ptr %212, i64 %215
  %217 = load i8, ptr %216, align 1, !tbaa !19
  %218 = zext i8 %217 to i32
  br label %220

219:                                              ; preds = %204
  br label %220

220:                                              ; preds = %219, %210
  %221 = phi i32 [ %218, %210 ], [ 3, %219 ]
  store i32 %221, ptr %21, align 4, !tbaa !9
  %222 = load i32, ptr %21, align 4, !tbaa !9
  %223 = icmp ne i32 %222, 0
  br i1 %223, label %230, label %224

224:                                              ; preds = %220
  %225 = load ptr, ptr %19, align 8, !tbaa !5
  %226 = getelementptr inbounds %class.Element, ptr %225, i32 0, i32 7
  %227 = load i32, ptr %226, align 8, !tbaa !30
  %228 = and i32 %227, 268435456
  %229 = icmp ne i32 %228, 0
  br i1 %229, label %230, label %297

230:                                              ; preds = %224, %220
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  store i32 0, ptr %22, align 4, !tbaa !9
  %231 = load i32, ptr %21, align 4, !tbaa !9
  %232 = icmp ne i32 %231, 0
  br i1 %232, label %233, label %239

233:                                              ; preds = %230
  %234 = load i32, ptr %21, align 4, !tbaa !9
  %235 = sitofp i32 %234 to float
  %236 = fdiv float %235, 3.000000e+00
  %237 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 48
  %238 = getelementptr inbounds %class.Slope, ptr %237, i32 0, i32 0
  store float %236, ptr %238, align 8, !tbaa !31
  br label %242

239:                                              ; preds = %230
  %240 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 48
  %241 = getelementptr inbounds %class.Slope, ptr %240, i32 0, i32 0
  store float 0x3FB99999A0000000, ptr %241, align 8, !tbaa !31
  br label %242

242:                                              ; preds = %239, %233
  br label %243

243:                                              ; preds = %289, %242
  %244 = load i32, ptr %20, align 4, !tbaa !9
  %245 = load i32, ptr %22, align 4, !tbaa !9
  %246 = add nsw i32 %245, %244
  store i32 %246, ptr %22, align 4, !tbaa !9
  %247 = load i32, ptr %18, align 4, !tbaa !9
  %248 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 39
  %249 = load i32, ptr %248, align 4, !tbaa !17
  %250 = icmp slt i32 %247, %249
  br i1 %250, label %251, label %261

251:                                              ; preds = %243
  %252 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 40
  %253 = load ptr, ptr %252, align 8, !tbaa !18
  %254 = load i32, ptr %18, align 4, !tbaa !9
  %255 = add nsw i32 %254, 1
  store i32 %255, ptr %18, align 4, !tbaa !9
  %256 = sext i32 %254 to i64
  %257 = getelementptr inbounds i8, ptr %253, i64 %256
  %258 = load i8, ptr %257, align 1, !tbaa !19
  %259 = zext i8 %258 to i64
  %260 = getelementptr inbounds [69 x %class.Element], ptr @_ZL8gElement, i64 0, i64 %259
  br label %262

261:                                              ; preds = %243
  br label %262

262:                                              ; preds = %261, %251
  %263 = phi ptr [ %260, %251 ], [ @_ZL8gElement, %261 ]
  store ptr %263, ptr %19, align 8, !tbaa !5
  %264 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 40
  %265 = load ptr, ptr %264, align 8, !tbaa !18
  %266 = load i32, ptr %18, align 4, !tbaa !9
  %267 = add nsw i32 %266, 1
  store i32 %267, ptr %18, align 4, !tbaa !9
  %268 = sext i32 %266 to i64
  %269 = getelementptr inbounds i8, ptr %265, i64 %268
  %270 = load i8, ptr %269, align 1, !tbaa !19
  %271 = zext i8 %270 to i32
  store i32 %271, ptr %20, align 4, !tbaa !9
  br label %272

272:                                              ; preds = %262
  %273 = load ptr, ptr %19, align 8, !tbaa !5
  %274 = getelementptr inbounds %class.Element, ptr %273, i32 0, i32 7
  %275 = load i32, ptr %274, align 8, !tbaa !30
  %276 = and i32 %275, 268435456
  %277 = icmp ne i32 %276, 0
  br i1 %277, label %278, label %289

278:                                              ; preds = %272
  %279 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 40
  %280 = load ptr, ptr %279, align 8, !tbaa !18
  %281 = load i32, ptr %18, align 4, !tbaa !9
  %282 = add nsw i32 %281, 1
  store i32 %282, ptr %18, align 4, !tbaa !9
  %283 = sext i32 %281 to i64
  %284 = getelementptr inbounds i8, ptr %280, i64 %283
  %285 = load i8, ptr %284, align 1, !tbaa !19
  %286 = zext i8 %285 to i32
  %287 = load i32, ptr %21, align 4, !tbaa !9
  %288 = icmp eq i32 %286, %287
  br label %289

289:                                              ; preds = %278, %272
  %290 = phi i1 [ false, %272 ], [ %288, %278 ]
  br i1 %290, label %243, label %291, !llvm.loop !32

291:                                              ; preds = %289
  %292 = load i32, ptr %22, align 4, !tbaa !9
  %293 = sdiv i32 %292, 2
  %294 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 46
  %295 = load i32, ptr %294, align 4, !tbaa !28
  %296 = add nsw i32 %295, %293
  store i32 %296, ptr %294, align 4, !tbaa !28
  store i32 6, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  br label %302

297:                                              ; preds = %224
  %298 = load i32, ptr %20, align 4, !tbaa !9
  %299 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 46
  %300 = load i32, ptr %299, align 4, !tbaa !28
  %301 = add nsw i32 %300, %298
  store i32 %301, ptr %299, align 4, !tbaa !28
  store i32 0, ptr %9, align 4
  br label %302

302:                                              ; preds = %297, %291
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #5
  %303 = load i32, ptr %9, align 4
  switch i32 %303, label %485 [
    i32 0, label %304
    i32 6, label %305
  ]

304:                                              ; preds = %302
  br label %167, !llvm.loop !34

305:                                              ; preds = %302, %167
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  br label %306

306:                                              ; preds = %305, %150
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  store i32 0, ptr %23, align 4, !tbaa !9
  br label %307

307:                                              ; preds = %330, %306
  %308 = load i32, ptr %23, align 4, !tbaa !9
  %309 = icmp slt i32 %308, 19
  br i1 %309, label %310, label %333

310:                                              ; preds = %307
  %311 = load i32, ptr %23, align 4, !tbaa !9
  %312 = sext i32 %311 to i64
  %313 = getelementptr inbounds [19 x %class.Slope], ptr %13, i64 0, i64 %312
  %314 = load i32, ptr %23, align 4, !tbaa !9
  %315 = sext i32 %314 to i64
  %316 = getelementptr inbounds [19 x %class.Slope], ptr %14, i64 0, i64 %315
  %317 = load ptr, ptr %10, align 8, !tbaa !5
  %318 = getelementptr inbounds %class.Element, ptr %317, i32 0, i32 8
  %319 = load i32, ptr %23, align 4, !tbaa !9
  %320 = sext i32 %319 to i64
  %321 = getelementptr inbounds [19 x %class.Interp], ptr %318, i64 0, i64 %320
  %322 = getelementptr inbounds %class.Interp, ptr %321, i32 0, i32 0
  %323 = load float, ptr %322, align 4, !tbaa !35
  %324 = load i32, ptr %15, align 4, !tbaa !9
  %325 = load i32, ptr %11, align 4, !tbaa !9
  %326 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef %313, ptr noundef %316, float noundef %323, i32 noundef %324, i32 noundef %325)
  %327 = load i32, ptr %23, align 4, !tbaa !9
  %328 = sext i32 %327 to i64
  %329 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 %328
  store float %326, ptr %329, align 4, !tbaa !26
  br label %330

330:                                              ; preds = %310
  %331 = load i32, ptr %23, align 4, !tbaa !9
  %332 = add nsw i32 %331, 1
  store i32 %332, ptr %23, align 4, !tbaa !9
  br label %307, !llvm.loop !37

333:                                              ; preds = %307
  %334 = load float, ptr %16, align 4, !tbaa !26
  %335 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 49
  %336 = load float, ptr %335, align 8, !tbaa !24
  %337 = load float, ptr %16, align 4, !tbaa !26
  %338 = fsub float %336, %337
  %339 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 47
  %340 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 48
  %341 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 45
  %342 = load i32, ptr %341, align 8, !tbaa !27
  %343 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 46
  %344 = load i32, ptr %343, align 4, !tbaa !28
  %345 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef %339, ptr noundef %340, float noundef 0.000000e+00, i32 noundef %342, i32 noundef %344)
  %346 = call float @llvm.fmuladd.f32(float %338, float %345, float %334)
  %347 = fptosi float %346 to i32
  %348 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %349 = getelementptr inbounds %class.klatt_frame, ptr %348, i32 0, i32 0
  store i32 %347, ptr %349, align 4, !tbaa !23
  %350 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 15
  %351 = load float, ptr %350, align 4, !tbaa !26
  %352 = fptosi float %351 to i32
  %353 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %354 = getelementptr inbounds %class.klatt_frame, ptr %353, i32 0, i32 38
  store i32 %352, ptr %354, align 4, !tbaa !38
  %355 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %356 = getelementptr inbounds %class.klatt_frame, ptr %355, i32 0, i32 1
  store i32 %352, ptr %356, align 4, !tbaa !39
  %357 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 18
  %358 = load float, ptr %357, align 8, !tbaa !26
  %359 = fptosi float %358 to i32
  %360 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %361 = getelementptr inbounds %class.klatt_frame, ptr %360, i32 0, i32 22
  store i32 %359, ptr %361, align 4, !tbaa !40
  %362 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 0
  %363 = load float, ptr %362, align 16, !tbaa !26
  %364 = fptosi float %363 to i32
  %365 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %366 = getelementptr inbounds %class.klatt_frame, ptr %365, i32 0, i32 14
  store i32 %364, ptr %366, align 4, !tbaa !41
  %367 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 17
  %368 = load float, ptr %367, align 4, !tbaa !26
  %369 = fptosi float %368 to i32
  %370 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %371 = getelementptr inbounds %class.klatt_frame, ptr %370, i32 0, i32 18
  store i32 %369, ptr %371, align 4, !tbaa !42
  %372 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 16
  %373 = load float, ptr %372, align 16, !tbaa !26
  %374 = fptosi float %373 to i32
  %375 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %376 = getelementptr inbounds %class.klatt_frame, ptr %375, i32 0, i32 20
  store i32 %374, ptr %376, align 4, !tbaa !43
  %377 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 4
  %378 = load float, ptr %377, align 16, !tbaa !26
  %379 = fptosi float %378 to i32
  %380 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %381 = getelementptr inbounds %class.klatt_frame, ptr %380, i32 0, i32 3
  store i32 %379, ptr %381, align 4, !tbaa !44
  %382 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %383 = getelementptr inbounds %class.klatt_frame, ptr %382, i32 0, i32 25
  store i32 %379, ptr %383, align 4, !tbaa !45
  %384 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 5
  %385 = load float, ptr %384, align 4, !tbaa !26
  %386 = fptosi float %385 to i32
  %387 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %388 = getelementptr inbounds %class.klatt_frame, ptr %387, i32 0, i32 5
  store i32 %386, ptr %388, align 4, !tbaa !46
  %389 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %390 = getelementptr inbounds %class.klatt_frame, ptr %389, i32 0, i32 27
  store i32 %386, ptr %390, align 4, !tbaa !47
  %391 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 6
  %392 = load float, ptr %391, align 8, !tbaa !26
  %393 = fptosi float %392 to i32
  %394 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %395 = getelementptr inbounds %class.klatt_frame, ptr %394, i32 0, i32 7
  store i32 %393, ptr %395, align 4, !tbaa !48
  %396 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %397 = getelementptr inbounds %class.klatt_frame, ptr %396, i32 0, i32 29
  store i32 %393, ptr %397, align 4, !tbaa !49
  %398 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 1
  %399 = load float, ptr %398, align 4, !tbaa !26
  %400 = fptosi float %399 to i32
  %401 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %402 = getelementptr inbounds %class.klatt_frame, ptr %401, i32 0, i32 2
  store i32 %400, ptr %402, align 4, !tbaa !50
  %403 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 2
  %404 = load float, ptr %403, align 8, !tbaa !26
  %405 = fptosi float %404 to i32
  %406 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %407 = getelementptr inbounds %class.klatt_frame, ptr %406, i32 0, i32 4
  store i32 %405, ptr %407, align 4, !tbaa !51
  %408 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 3
  %409 = load float, ptr %408, align 4, !tbaa !26
  %410 = fptosi float %409 to i32
  %411 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %412 = getelementptr inbounds %class.klatt_frame, ptr %411, i32 0, i32 6
  store i32 %410, ptr %412, align 4, !tbaa !52
  %413 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 14
  %414 = load float, ptr %413, align 8, !tbaa !26
  %415 = fptosi float %414 to i32
  %416 = add nsw i32 14, %415
  %417 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %418 = getelementptr inbounds %class.klatt_frame, ptr %417, i32 0, i32 37
  store i32 %416, ptr %418, align 4, !tbaa !53
  %419 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 12
  %420 = load float, ptr %419, align 16, !tbaa !26
  %421 = fptosi float %420 to i32
  %422 = add nsw i32 14, %421
  %423 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %424 = getelementptr inbounds %class.klatt_frame, ptr %423, i32 0, i32 32
  store i32 %422, ptr %424, align 4, !tbaa !54
  %425 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 13
  %426 = load float, ptr %425, align 4, !tbaa !26
  %427 = fptosi float %426 to i32
  %428 = add nsw i32 14, %427
  %429 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %430 = getelementptr inbounds %class.klatt_frame, ptr %429, i32 0, i32 34
  store i32 %428, ptr %430, align 4, !tbaa !55
  %431 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 8
  %432 = load float, ptr %431, align 16, !tbaa !26
  %433 = fptosi float %432 to i32
  %434 = add nsw i32 14, %433
  %435 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %436 = getelementptr inbounds %class.klatt_frame, ptr %435, i32 0, i32 24
  store i32 %434, ptr %436, align 4, !tbaa !56
  %437 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 9
  %438 = load float, ptr %437, align 4, !tbaa !26
  %439 = fptosi float %438 to i32
  %440 = add nsw i32 14, %439
  %441 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %442 = getelementptr inbounds %class.klatt_frame, ptr %441, i32 0, i32 26
  store i32 %440, ptr %442, align 4, !tbaa !57
  %443 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 10
  %444 = load float, ptr %443, align 8, !tbaa !26
  %445 = fptosi float %444 to i32
  %446 = add nsw i32 14, %445
  %447 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %448 = getelementptr inbounds %class.klatt_frame, ptr %447, i32 0, i32 28
  store i32 %446, ptr %448, align 4, !tbaa !58
  %449 = getelementptr inbounds [19 x float], ptr %17, i64 0, i64 11
  %450 = load float, ptr %449, align 4, !tbaa !26
  %451 = fptosi float %450 to i32
  %452 = add nsw i32 14, %451
  %453 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 42
  %454 = getelementptr inbounds %class.klatt_frame, ptr %453, i32 0, i32 30
  store i32 %452, ptr %454, align 4, !tbaa !59
  %455 = load ptr, ptr %8, align 8, !tbaa !5
  call void @_ZN5klatt7parwaveEPs(ptr noundef nonnull align 8 dereferenceable(564) %24, ptr noundef %455)
  %456 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 18
  %457 = load i32, ptr %456, align 8, !tbaa !60
  %458 = load ptr, ptr %8, align 8, !tbaa !5
  %459 = sext i32 %457 to i64
  %460 = getelementptr inbounds i16, ptr %458, i64 %459
  store ptr %460, ptr %8, align 8, !tbaa !5
  %461 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 14
  %462 = load float, ptr %461, align 8, !tbaa !61
  %463 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 49
  %464 = load float, ptr %463, align 8, !tbaa !24
  %465 = fsub float %464, %462
  store float %465, ptr %463, align 8, !tbaa !24
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 76, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %466

466:                                              ; preds = %333
  %467 = load i32, ptr %15, align 4, !tbaa !9
  %468 = add nsw i32 %467, 1
  store i32 %468, ptr %15, align 4, !tbaa !9
  %469 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 45
  %470 = load i32, ptr %469, align 8, !tbaa !27
  %471 = add nsw i32 %470, 1
  store i32 %471, ptr %469, align 8, !tbaa !27
  br label %146, !llvm.loop !62

472:                                              ; preds = %146
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #5
  call void @llvm.lifetime.end.p0(i64 152, ptr %14) #5
  call void @llvm.lifetime.end.p0(i64 152, ptr %13) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #5
  br label %473

473:                                              ; preds = %472, %71
  %474 = load ptr, ptr %10, align 8, !tbaa !5
  %475 = getelementptr inbounds %class.klatt, ptr %24, i32 0, i32 44
  store ptr %474, ptr %475, align 8, !tbaa !25
  %476 = load ptr, ptr %8, align 8, !tbaa !5
  %477 = load ptr, ptr %7, align 8, !tbaa !5
  %478 = ptrtoint ptr %476 to i64
  %479 = ptrtoint ptr %477 to i64
  %480 = sub i64 %478, %479
  %481 = sdiv exact i64 %480, 2
  %482 = trunc i64 %481 to i32
  store i32 %482, ptr %4, align 4
  store i32 1, ptr %9, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #5
  br label %483

483:                                              ; preds = %473, %31
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  %484 = load i32, ptr %4, align 4
  ret i32 %484

485:                                              ; preds = %302
  unreachable
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL9set_transP5SlopeP7ElementS2_ii(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) #0

; 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) #4

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef, ptr noundef, float noundef, i32 noundef, i32 noundef) #2

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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #4 = { nocallback nofree nounwind willreturn memory(argmem: readwrite) }
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, !10, i64 360}
!12 = !{!"_ZTS5klatt", !13, i64 0, !13, i64 20, !13, i64 40, !13, i64 60, !13, i64 80, !13, i64 100, !13, i64 120, !13, i64 140, !13, i64 160, !13, i64 180, !13, i64 200, !13, i64 220, !10, i64 240, !14, i64 244, !14, i64 248, !10, i64 252, !10, i64 256, !10, i64 260, !10, i64 264, !10, i64 268, !10, i64 272, !10, i64 276, !10, i64 280, !10, i64 284, !10, i64 288, !10, i64 292, !10, i64 296, !14, i64 300, !14, i64 304, !14, i64 308, !14, i64 312, !14, i64 316, !10, i64 320, !14, i64 324, !14, i64 328, !14, i64 332, !14, i64 336, !14, i64 340, !10, i64 344, !10, i64 348, !6, i64 352, !10, i64 360, !15, i64 364, !6, i64 528, !10, i64 536, !10, i64 540, !16, i64 544, !16, i64 552, !14, i64 560}
!13 = !{!"_ZTS9resonator", !14, i64 0, !14, i64 4, !14, i64 8, !14, i64 12, !14, i64 16}
!14 = !{!"float", !7, i64 0}
!15 = !{!"_ZTS11klatt_frame", !10, i64 0, !10, i64 4, !10, i64 8, !10, i64 12, !10, i64 16, !10, i64 20, !10, i64 24, !10, i64 28, !10, i64 32, !10, i64 36, !10, i64 40, !10, i64 44, !10, i64 48, !10, i64 52, !10, i64 56, !10, i64 60, !10, i64 64, !10, i64 68, !10, i64 72, !10, i64 76, !10, i64 80, !10, i64 84, !10, i64 88, !10, i64 92, !10, i64 96, !10, i64 100, !10, i64 104, !10, i64 108, !10, i64 112, !10, i64 116, !10, i64 120, !10, i64 124, !10, i64 128, !10, i64 132, !10, i64 136, !10, i64 140, !10, i64 144, !10, i64 148, !10, i64 152, !10, i64 156}
!16 = !{!"_ZTS5Slope", !14, i64 0, !10, i64 4}
!17 = !{!12, !10, i64 348}
!18 = !{!12, !6, i64 352}
!19 = !{!7, !7, i64 0}
!20 = !{!21, !7, i64 8}
!21 = !{!"_ZTS7Element", !6, i64 0, !7, i64 8, !7, i64 9, !7, i64 10, !7, i64 11, !6, i64 16, !6, i64 24, !10, i64 32, !7, i64 36}
!22 = !{!12, !10, i64 240}
!23 = !{!12, !10, i64 364}
!24 = !{!12, !14, i64 560}
!25 = !{!12, !6, i64 528}
!26 = !{!14, !14, i64 0}
!27 = !{!12, !10, i64 536}
!28 = !{!12, !10, i64 540}
!29 = !{i64 0, i64 4, !26, i64 4, i64 4, !9}
!30 = !{!21, !10, i64 32}
!31 = !{!12, !14, i64 552}
!32 = distinct !{!32, !33}
!33 = !{!"llvm.loop.mustprogress"}
!34 = distinct !{!34, !33}
!35 = !{!36, !14, i64 0}
!36 = !{!"_ZTS6Interp", !14, i64 0, !14, i64 4, !7, i64 8, !7, i64 9, !7, i64 10}
!37 = distinct !{!37, !33}
!38 = !{!12, !10, i64 516}
!39 = !{!12, !10, i64 368}
!40 = !{!12, !10, i64 452}
!41 = !{!12, !10, i64 420}
!42 = !{!12, !10, i64 436}
!43 = !{!12, !10, i64 444}
!44 = !{!12, !10, i64 376}
!45 = !{!12, !10, i64 464}
!46 = !{!12, !10, i64 384}
!47 = !{!12, !10, i64 472}
!48 = !{!12, !10, i64 392}
!49 = !{!12, !10, i64 480}
!50 = !{!12, !10, i64 372}
!51 = !{!12, !10, i64 380}
!52 = !{!12, !10, i64 388}
!53 = !{!12, !10, i64 512}
!54 = !{!12, !10, i64 492}
!55 = !{!12, !10, i64 500}
!56 = !{!12, !10, i64 460}
!57 = !{!12, !10, i64 468}
!58 = !{!12, !10, i64 476}
!59 = !{!12, !10, i64 484}
!60 = !{!12, !10, i64 264}
!61 = !{!12, !14, i64 248}
!62 = distinct !{!62, !33}


; 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.Element = type { ptr, i8, i8, i8, i8, ptr, ptr, i32, [19 x %class.Interp] }
%class.Interp = type { float, float, i8, i8, i8 }
%class.Slope = type { float, i32 }

@_ZL8gElement = external hidden global [69 x %class.Element], align 16

; Function Attrs: mustprogress nounwind uwtable
declare dso_local void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8)) unnamed_addr #0 align 2

; 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 nocallback nofree nosync nounwind willreturn memory(argmem: readwrite)
declare void @llvm.lifetime.end.p0(i64 immarg, ptr nocapture) #1

; Function Attrs: mustprogress uwtable
declare dso_local void @_ZN5klatt7parwaveEPs(ptr noundef nonnull align 8 dereferenceable(564), ptr noundef) local_unnamed_addr #2 align 2

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

; Function Attrs: mustprogress uwtable
define dso_local noundef i32 @_ZN5klatt5synthEiPs(ptr noundef nonnull align 8 dereferenceable(564) %0, i32 noundef %1, ptr noundef %2) local_unnamed_addr #2 align 2 {
  %4 = alloca [19 x %class.Slope], align 16
  %5 = alloca [19 x %class.Slope], align 16
  %6 = getelementptr inbounds i8, ptr %0, i64 360
  %7 = load i32, ptr %6, align 8, !tbaa !5
  %8 = getelementptr inbounds i8, ptr %0, i64 348
  %9 = load i32, ptr %8, align 4, !tbaa !15
  %.not = icmp slt i32 %7, %9
  br i1 %.not, label %10, label %273

10:                                               ; preds = %3
  %11 = getelementptr inbounds i8, ptr %0, i64 352
  %12 = load ptr, ptr %11, align 8, !tbaa !16
  %13 = add nsw i32 %7, 1
  store i32 %13, ptr %6, align 8, !tbaa !5
  %14 = sext i32 %7 to i64
  %15 = getelementptr inbounds i8, ptr %12, i64 %14
  %16 = load i8, ptr %15, align 1, !tbaa !17
  %17 = zext i8 %16 to i64
  %18 = getelementptr inbounds [69 x %class.Element], ptr @_ZL8gElement, i64 0, i64 %17
  %19 = add nsw i32 %7, 2
  store i32 %19, ptr %6, align 8, !tbaa !5
  %20 = sext i32 %13 to i64
  %21 = getelementptr inbounds i8, ptr %12, i64 %20
  %22 = load i8, ptr %21, align 1, !tbaa !17
  %23 = zext i8 %22 to i32
  %24 = add nsw i32 %7, 3
  store i32 %24, ptr %6, align 8, !tbaa !5
  %25 = getelementptr inbounds i8, ptr %18, i64 8
  %26 = load i8, ptr %25, align 8, !tbaa !18
  %27 = icmp eq i8 %26, 31
  br i1 %27, label %28, label %35

28:                                               ; preds = %10
  %29 = getelementptr inbounds i8, ptr %0, i64 240
  %30 = load i32, ptr %29, align 8, !tbaa !20
  %31 = getelementptr inbounds i8, ptr %0, i64 364
  store i32 %30, ptr %31, align 4, !tbaa !21
  %32 = sitofp i32 %30 to float
  %33 = fmul float %32, 0x3FF19999A0000000
  %34 = getelementptr inbounds i8, ptr %0, i64 560
  store float %33, ptr %34, align 8, !tbaa !22
  br label %35

35:                                               ; preds = %28, %10
  %.not68 = icmp eq i8 %22, 0
  br i1 %.not68, label %266, label %36

36:                                               ; preds = %35
  %37 = icmp slt i32 %24, %9
  br i1 %37, label %38, label %44

38:                                               ; preds = %36
  %39 = sext i32 %24 to i64
  %40 = getelementptr inbounds i8, ptr %12, i64 %39
  %41 = load i8, ptr %40, align 1, !tbaa !17
  %42 = zext i8 %41 to i64
  %43 = getelementptr inbounds [69 x %class.Element], ptr @_ZL8gElement, i64 0, i64 %42
  br label %44

44:                                               ; preds = %36, %38
  %45 = phi ptr [ %43, %38 ], [ @_ZL8gElement, %36 ]
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %4) #5
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %4)
  %.ptr.1 = getelementptr inbounds i8, ptr %4, i64 8
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.1)
  %.ptr.2 = getelementptr inbounds i8, ptr %4, i64 16
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.2)
  %.ptr.3 = getelementptr inbounds i8, ptr %4, i64 24
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.3)
  %.ptr.4 = getelementptr inbounds i8, ptr %4, i64 32
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.4)
  %.ptr.5 = getelementptr inbounds i8, ptr %4, i64 40
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.5)
  %.ptr.6 = getelementptr inbounds i8, ptr %4, i64 48
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.6)
  %.ptr.7 = getelementptr inbounds i8, ptr %4, i64 56
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.7)
  %.ptr.8 = getelementptr inbounds i8, ptr %4, i64 64
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.8)
  %.ptr.9 = getelementptr inbounds i8, ptr %4, i64 72
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.9)
  %.ptr.10 = getelementptr inbounds i8, ptr %4, i64 80
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.10)
  %.ptr.11 = getelementptr inbounds i8, ptr %4, i64 88
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.11)
  %.ptr.12 = getelementptr inbounds i8, ptr %4, i64 96
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.12)
  %.ptr.13 = getelementptr inbounds i8, ptr %4, i64 104
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.13)
  %.ptr.14 = getelementptr inbounds i8, ptr %4, i64 112
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.14)
  %.ptr.15 = getelementptr inbounds i8, ptr %4, i64 120
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.15)
  %.ptr.16 = getelementptr inbounds i8, ptr %4, i64 128
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.16)
  %.ptr.17 = getelementptr inbounds i8, ptr %4, i64 136
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.17)
  %.ptr.18 = getelementptr inbounds i8, ptr %4, i64 144
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr.18)
  call void @llvm.lifetime.start.p0(i64 152, ptr nonnull %5) #5
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %5)
  %.ptr72.1 = getelementptr inbounds i8, ptr %5, i64 8
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.1)
  %.ptr72.2 = getelementptr inbounds i8, ptr %5, i64 16
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.2)
  %.ptr72.3 = getelementptr inbounds i8, ptr %5, i64 24
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.3)
  %.ptr72.4 = getelementptr inbounds i8, ptr %5, i64 32
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.4)
  %.ptr72.5 = getelementptr inbounds i8, ptr %5, i64 40
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.5)
  %.ptr72.6 = getelementptr inbounds i8, ptr %5, i64 48
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.6)
  %.ptr72.7 = getelementptr inbounds i8, ptr %5, i64 56
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.7)
  %.ptr72.8 = getelementptr inbounds i8, ptr %5, i64 64
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.8)
  %.ptr72.9 = getelementptr inbounds i8, ptr %5, i64 72
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.9)
  %.ptr72.10 = getelementptr inbounds i8, ptr %5, i64 80
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.10)
  %.ptr72.11 = getelementptr inbounds i8, ptr %5, i64 88
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.11)
  %.ptr72.12 = getelementptr inbounds i8, ptr %5, i64 96
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.12)
  %.ptr72.13 = getelementptr inbounds i8, ptr %5, i64 104
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.13)
  %.ptr72.14 = getelementptr inbounds i8, ptr %5, i64 112
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.14)
  %.ptr72.15 = getelementptr inbounds i8, ptr %5, i64 120
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.15)
  %.ptr72.16 = getelementptr inbounds i8, ptr %5, i64 128
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.16)
  %.ptr72.17 = getelementptr inbounds i8, ptr %5, i64 136
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.17)
  %.ptr72.18 = getelementptr inbounds i8, ptr %5, i64 144
  call void @_ZN5SlopeC2Ev(ptr noundef nonnull align 4 dereferenceable(8) %.ptr72.18)
  %46 = load i8, ptr %25, align 8, !tbaa !18
  %47 = getelementptr inbounds i8, ptr %0, i64 528
  %48 = load ptr, ptr %47, align 8, !tbaa !23
  %49 = getelementptr inbounds i8, ptr %48, i64 8
  %50 = load i8, ptr %49, align 8, !tbaa !18
  %51 = icmp sgt i8 %46, %50
  br i1 %51, label %52, label %53

52:                                               ; preds = %44
  call void @_ZL9set_transP5SlopeP7ElementS2_ii(ptr noundef nonnull %4, ptr noundef nonnull %18, ptr noundef nonnull %48, i32 noundef 0, i32 noundef 115)
  br label %54

53:                                               ; preds = %44
  call void @_ZL9set_transP5SlopeP7ElementS2_ii(ptr noundef nonnull %4, ptr noundef nonnull %48, ptr noundef nonnull %18, i32 noundef 1, i32 noundef 115)
  br label %54

54:                                               ; preds = %53, %52
  %55 = getelementptr inbounds i8, ptr %45, i64 8
  %56 = load i8, ptr %55, align 8, !tbaa !18
  %57 = load i8, ptr %25, align 8, !tbaa !18
  %58 = icmp sgt i8 %56, %57
  br i1 %58, label %59, label %60

59:                                               ; preds = %54
  call void @_ZL9set_transP5SlopeP7ElementS2_ii(ptr noundef nonnull %5, ptr noundef nonnull %45, ptr noundef nonnull %18, i32 noundef 1, i32 noundef 101)
  br label %61

60:                                               ; preds = %54
  call void @_ZL9set_transP5SlopeP7ElementS2_ii(ptr noundef nonnull %5, ptr noundef nonnull %18, ptr noundef nonnull %45, i32 noundef 0, i32 noundef 101)
  br label %61

61:                                               ; preds = %60, %59
  %62 = getelementptr inbounds i8, ptr %0, i64 560
  %63 = getelementptr inbounds i8, ptr %0, i64 536
  %64 = getelementptr inbounds i8, ptr %0, i64 540
  %65 = getelementptr inbounds i8, ptr %18, i64 36
  %66 = getelementptr inbounds i8, ptr %0, i64 552
  %67 = getelementptr inbounds i8, ptr %0, i64 544
  %68 = getelementptr inbounds i8, ptr %0, i64 364
  %69 = getelementptr inbounds i8, ptr %0, i64 516
  %70 = getelementptr inbounds i8, ptr %0, i64 452
  %71 = getelementptr inbounds i8, ptr %0, i64 420
  %72 = getelementptr inbounds i8, ptr %0, i64 436
  %73 = getelementptr inbounds i8, ptr %0, i64 444
  %74 = getelementptr inbounds i8, ptr %0, i64 464
  %75 = getelementptr inbounds i8, ptr %0, i64 472
  %76 = getelementptr inbounds i8, ptr %0, i64 480
  %77 = getelementptr inbounds i8, ptr %0, i64 380
  %78 = getelementptr inbounds i8, ptr %0, i64 512
  %79 = getelementptr inbounds i8, ptr %0, i64 492
  %80 = getelementptr inbounds i8, ptr %0, i64 500
  %81 = getelementptr inbounds i8, ptr %0, i64 460
  %82 = getelementptr inbounds i8, ptr %0, i64 468
  %83 = getelementptr inbounds i8, ptr %0, i64 476
  %84 = getelementptr inbounds i8, ptr %0, i64 484
  %85 = getelementptr inbounds i8, ptr %0, i64 264
  %86 = getelementptr inbounds i8, ptr %0, i64 248
  %umax = call i32 @llvm.umax.i32(i32 %23, i32 1)
  %.pre = load float, ptr %62, align 8, !tbaa !22
  %.pre123 = load i32, ptr %63, align 8, !tbaa !24
  %87 = getelementptr inbounds i8, ptr %18, i64 48
  %88 = getelementptr inbounds i8, ptr %18, i64 60
  %89 = getelementptr inbounds i8, ptr %18, i64 72
  %90 = getelementptr inbounds i8, ptr %18, i64 84
  %91 = getelementptr inbounds i8, ptr %18, i64 96
  %92 = getelementptr inbounds i8, ptr %18, i64 108
  %93 = getelementptr inbounds i8, ptr %18, i64 120
  %94 = getelementptr inbounds i8, ptr %18, i64 132
  %95 = getelementptr inbounds i8, ptr %18, i64 144
  %96 = getelementptr inbounds i8, ptr %18, i64 156
  %97 = getelementptr inbounds i8, ptr %18, i64 168
  %98 = getelementptr inbounds i8, ptr %18, i64 180
  %99 = getelementptr inbounds i8, ptr %18, i64 192
  %100 = getelementptr inbounds i8, ptr %18, i64 204
  %101 = getelementptr inbounds i8, ptr %18, i64 216
  %102 = getelementptr inbounds i8, ptr %18, i64 228
  %103 = getelementptr inbounds i8, ptr %18, i64 240
  %104 = getelementptr inbounds i8, ptr %18, i64 252
  br label %105

105:                                              ; preds = %61, %.loopexit
  %106 = phi i32 [ %.pre123, %61 ], [ %264, %.loopexit ]
  %107 = phi float [ %.pre, %61 ], [ %261, %.loopexit ]
  %.059107 = phi ptr [ %2, %61 ], [ %258, %.loopexit ]
  %.061106 = phi i32 [ 0, %61 ], [ %262, %.loopexit ]
  %108 = fmul float %107, 0x3FE99999A0000000
  %109 = load i32, ptr %64, align 4, !tbaa !25
  %110 = icmp eq i32 %106, %109
  br i1 %110, label %111, label %.loopexit

111:                                              ; preds = %105
  %112 = load i32, ptr %6, align 8, !tbaa !5
  %113 = load i64, ptr %66, align 8
  store i64 %113, ptr %67, align 8
  store i32 0, ptr %63, align 8, !tbaa !24
  %114 = load i32, ptr %8, align 4, !tbaa !15
  store i32 %23, ptr %64, align 4, !tbaa !25
  %.not74102 = icmp sgt i32 %112, %114
  br i1 %.not74102, label %.loopexit, label %.lr.ph

.lr.ph:                                           ; preds = %111
  %115 = load ptr, ptr %11, align 8
  br label %118

116:                                              ; preds = %145
  %117 = add nuw nsw i32 %119, %138
  store i32 %117, ptr %64, align 4, !tbaa !25
  br label %118

118:                                              ; preds = %116, %.lr.ph
  %.058104 = phi i32 [ %112, %.lr.ph ], [ %141, %116 ]
  %119 = phi i32 [ %23, %.lr.ph ], [ %117, %116 ]
  %120 = icmp slt i32 %.058104, %114
  br i1 %120, label %121, label %128

121:                                              ; preds = %118
  %122 = add nsw i32 %.058104, 1
  %123 = sext i32 %.058104 to i64
  %124 = getelementptr inbounds i8, ptr %115, i64 %123
  %125 = load i8, ptr %124, align 1, !tbaa !17
  %126 = zext i8 %125 to i64
  %127 = getelementptr inbounds [69 x %class.Element], ptr @_ZL8gElement, i64 0, i64 %126
  br label %128

128:                                              ; preds = %118, %121
  %.1 = phi i32 [ %122, %121 ], [ %.058104, %118 ]
  %129 = phi ptr [ %127, %121 ], [ @_ZL8gElement, %118 ]
  %130 = icmp slt i32 %.1, %114
  br i1 %130, label %131, label %137

131:                                              ; preds = %128
  %132 = add nsw i32 %.1, 1
  %133 = sext i32 %.1 to i64
  %134 = getelementptr inbounds i8, ptr %115, i64 %133
  %135 = load i8, ptr %134, align 1, !tbaa !17
  %136 = zext i8 %135 to i32
  br label %137

137:                                              ; preds = %128, %131
  %.2 = phi i32 [ %132, %131 ], [ %.1, %128 ]
  %138 = phi i32 [ %136, %131 ], [ 0, %128 ]
  %139 = icmp slt i32 %.2, %114
  br i1 %139, label %140, label %.critedge80

140:                                              ; preds = %137
  %141 = add nsw i32 %.2, 1
  %142 = sext i32 %.2 to i64
  %143 = getelementptr inbounds i8, ptr %115, i64 %142
  %144 = load i8, ptr %143, align 1, !tbaa !17
  %.not75 = icmp eq i8 %144, 0
  br i1 %.not75, label %145, label %.critedge80.split.loop.exit96

145:                                              ; preds = %140
  %146 = getelementptr inbounds i8, ptr %129, i64 32
  %147 = load i32, ptr %146, align 8, !tbaa !26
  %148 = and i32 %147, 268435456
  %.not76 = icmp eq i32 %148, 0
  br i1 %.not76, label %116, label %.loopexit90

.critedge80.split.loop.exit96:                    ; preds = %140
  %149 = zext i8 %144 to i32
  br label %.critedge80

.critedge80:                                      ; preds = %137, %.critedge80.split.loop.exit96
  %150 = phi i32 [ %149, %.critedge80.split.loop.exit96 ], [ 3, %137 ]
  %.384 = phi i32 [ %141, %.critedge80.split.loop.exit96 ], [ %.2, %137 ]
  %151 = uitofp nneg i32 %150 to float
  %152 = fdiv float %151, 3.000000e+00
  br label %.loopexit90

.loopexit90:                                      ; preds = %145, %.critedge80
  %153 = phi i32 [ %150, %.critedge80 ], [ 0, %145 ]
  %.383 = phi i32 [ %.384, %.critedge80 ], [ %141, %145 ]
  %storemerge77 = phi float [ %152, %.critedge80 ], [ 0x3FB99999A0000000, %145 ]
  store float %storemerge77, ptr %66, align 8, !tbaa !27
  %invariant.gep = getelementptr i8, ptr %115, i64 1
  br label %154

154:                                              ; preds = %169, %.loopexit90
  %.4 = phi i32 [ %.383, %.loopexit90 ], [ %174, %169 ]
  %.057 = phi i32 [ %138, %.loopexit90 ], [ %173, %169 ]
  %.055 = phi i32 [ 0, %.loopexit90 ], [ %155, %169 ]
  %155 = add nsw i32 %.055, %.057
  %156 = icmp slt i32 %.4, %114
  br i1 %156, label %157, label %164

157:                                              ; preds = %154
  %158 = add nsw i32 %.4, 1
  %159 = sext i32 %.4 to i64
  %160 = getelementptr inbounds i8, ptr %115, i64 %159
  %161 = load i8, ptr %160, align 1, !tbaa !17
  %162 = zext i8 %161 to i64
  %163 = getelementptr inbounds [69 x %class.Element], ptr @_ZL8gElement, i64 0, i64 %162
  br label %164

164:                                              ; preds = %154, %157
  %.5 = phi i32 [ %158, %157 ], [ %.4, %154 ]
  %165 = phi ptr [ %163, %157 ], [ @_ZL8gElement, %154 ]
  %166 = getelementptr inbounds i8, ptr %165, i64 32
  %167 = load i32, ptr %166, align 8, !tbaa !26
  %168 = and i32 %167, 268435456
  %.not78 = icmp eq i32 %168, 0
  br i1 %.not78, label %.thread85, label %169

169:                                              ; preds = %164
  %170 = sext i32 %.5 to i64
  %171 = getelementptr inbounds i8, ptr %115, i64 %170
  %172 = load i8, ptr %171, align 1, !tbaa !17
  %173 = zext i8 %172 to i32
  %174 = add nsw i32 %.5, 2
  %gep = getelementptr i8, ptr %invariant.gep, i64 %170
  %175 = load i8, ptr %gep, align 1, !tbaa !17
  %176 = zext i8 %175 to i32
  %177 = icmp eq i32 %153, %176
  br i1 %177, label %154, label %.thread85, !llvm.loop !28

.thread85:                                        ; preds = %169, %164
  %178 = sdiv i32 %155, 2
  %179 = add nsw i32 %119, %178
  store i32 %179, ptr %64, align 4, !tbaa !25
  br label %.loopexit

.loopexit:                                        ; preds = %111, %.thread85, %105
  %180 = load float, ptr %65, align 4, !tbaa !30
  %181 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %4, ptr noundef nonnull %5, float noundef %180, i32 noundef %.061106, i32 noundef %23)
  %182 = load float, ptr %87, align 8, !tbaa !30
  %183 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.1, ptr noundef nonnull %.ptr72.1, float noundef %182, i32 noundef %.061106, i32 noundef %23)
  %184 = load float, ptr %88, align 4, !tbaa !30
  %185 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.2, ptr noundef nonnull %.ptr72.2, float noundef %184, i32 noundef %.061106, i32 noundef %23)
  %186 = load float, ptr %89, align 8, !tbaa !30
  %187 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.3, ptr noundef nonnull %.ptr72.3, float noundef %186, i32 noundef %.061106, i32 noundef %23)
  %188 = load float, ptr %90, align 4, !tbaa !30
  %189 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.4, ptr noundef nonnull %.ptr72.4, float noundef %188, i32 noundef %.061106, i32 noundef %23)
  %190 = load float, ptr %91, align 8, !tbaa !30
  %191 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.5, ptr noundef nonnull %.ptr72.5, float noundef %190, i32 noundef %.061106, i32 noundef %23)
  %192 = load float, ptr %92, align 4, !tbaa !30
  %193 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.6, ptr noundef nonnull %.ptr72.6, float noundef %192, i32 noundef %.061106, i32 noundef %23)
  %194 = load float, ptr %93, align 8, !tbaa !30
  %195 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.7, ptr noundef nonnull %.ptr72.7, float noundef %194, i32 noundef %.061106, i32 noundef %23)
  %196 = load float, ptr %94, align 4, !tbaa !30
  %197 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.8, ptr noundef nonnull %.ptr72.8, float noundef %196, i32 noundef %.061106, i32 noundef %23)
  %198 = load float, ptr %95, align 8, !tbaa !30
  %199 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.9, ptr noundef nonnull %.ptr72.9, float noundef %198, i32 noundef %.061106, i32 noundef %23)
  %200 = load float, ptr %96, align 4, !tbaa !30
  %201 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.10, ptr noundef nonnull %.ptr72.10, float noundef %200, i32 noundef %.061106, i32 noundef %23)
  %202 = load float, ptr %97, align 8, !tbaa !30
  %203 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.11, ptr noundef nonnull %.ptr72.11, float noundef %202, i32 noundef %.061106, i32 noundef %23)
  %204 = load float, ptr %98, align 4, !tbaa !30
  %205 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.12, ptr noundef nonnull %.ptr72.12, float noundef %204, i32 noundef %.061106, i32 noundef %23)
  %206 = load float, ptr %99, align 8, !tbaa !30
  %207 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.13, ptr noundef nonnull %.ptr72.13, float noundef %206, i32 noundef %.061106, i32 noundef %23)
  %208 = load float, ptr %100, align 4, !tbaa !30
  %209 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.14, ptr noundef nonnull %.ptr72.14, float noundef %208, i32 noundef %.061106, i32 noundef %23)
  %210 = load float, ptr %101, align 8, !tbaa !30
  %211 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.15, ptr noundef nonnull %.ptr72.15, float noundef %210, i32 noundef %.061106, i32 noundef %23)
  %212 = load float, ptr %102, align 4, !tbaa !30
  %213 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.16, ptr noundef nonnull %.ptr72.16, float noundef %212, i32 noundef %.061106, i32 noundef %23)
  %214 = load float, ptr %103, align 8, !tbaa !30
  %215 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.17, ptr noundef nonnull %.ptr72.17, float noundef %214, i32 noundef %.061106, i32 noundef %23)
  %216 = load float, ptr %104, align 4, !tbaa !30
  %217 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %.ptr.18, ptr noundef nonnull %.ptr72.18, float noundef %216, i32 noundef %.061106, i32 noundef %23)
  %218 = load float, ptr %62, align 8, !tbaa !22
  %219 = fsub float %218, %108
  %220 = load i32, ptr %63, align 8, !tbaa !24
  %221 = load i32, ptr %64, align 4, !tbaa !25
  %222 = call noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef nonnull %67, ptr noundef nonnull %66, float noundef 0.000000e+00, i32 noundef %220, i32 noundef %221)
  %223 = call float @llvm.fmuladd.f32(float %219, float %222, float %108)
  %224 = fptosi float %217 to i32
  store i32 %224, ptr %70, align 4, !tbaa !32
  %225 = fptosi float %181 to i32
  store i32 %225, ptr %71, align 4, !tbaa !33
  %226 = fptosi float %215 to i32
  store i32 %226, ptr %72, align 4, !tbaa !34
  %227 = fptosi float %213 to i32
  store i32 %227, ptr %73, align 4, !tbaa !35
  %228 = insertelement <4 x float> poison, float %223, i64 0
  %229 = insertelement <4 x float> %228, float %211, i64 1
  %230 = insertelement <4 x float> %229, float %183, i64 2
  %231 = insertelement <4 x float> %230, float %189, i64 3
  %232 = fptosi <4 x float> %231 to <4 x i32>
  %233 = extractelement <4 x i32> %232, i64 1
  store i32 %233, ptr %69, align 4, !tbaa !36
  %234 = extractelement <4 x i32> %232, i64 3
  store i32 %234, ptr %74, align 8, !tbaa !37
  store <4 x i32> %232, ptr %68, align 4, !tbaa !38
  %235 = insertelement <4 x float> poison, float %185, i64 0
  %236 = insertelement <4 x float> %235, float %191, i64 1
  %237 = insertelement <4 x float> %236, float %187, i64 2
  %238 = insertelement <4 x float> %237, float %193, i64 3
  %239 = fptosi <4 x float> %238 to <4 x i32>
  %240 = extractelement <4 x i32> %239, i64 1
  store i32 %240, ptr %75, align 8, !tbaa !39
  %241 = extractelement <4 x i32> %239, i64 3
  store i32 %241, ptr %76, align 8, !tbaa !40
  store <4 x i32> %239, ptr %77, align 4, !tbaa !38
  %242 = fptosi float %209 to i32
  %243 = add nsw i32 %242, 14
  store i32 %243, ptr %78, align 8, !tbaa !41
  %244 = fptosi float %205 to i32
  %245 = add nsw i32 %244, 14
  store i32 %245, ptr %79, align 4, !tbaa !42
  %246 = fptosi float %207 to i32
  %247 = add nsw i32 %246, 14
  store i32 %247, ptr %80, align 4, !tbaa !43
  %248 = fptosi float %197 to i32
  %249 = add nsw i32 %248, 14
  store i32 %249, ptr %81, align 4, !tbaa !44
  %250 = fptosi float %199 to i32
  %251 = add nsw i32 %250, 14
  store i32 %251, ptr %82, align 4, !tbaa !45
  %252 = fptosi float %201 to i32
  %253 = add nsw i32 %252, 14
  store i32 %253, ptr %83, align 4, !tbaa !46
  %254 = fptosi float %203 to i32
  %255 = add nsw i32 %254, 14
  store i32 %255, ptr %84, align 4, !tbaa !47
  call void @_ZN5klatt7parwaveEPs(ptr noundef nonnull align 8 dereferenceable(564) %0, ptr noundef %.059107)
  %256 = load i32, ptr %85, align 8, !tbaa !48
  %257 = sext i32 %256 to i64
  %258 = getelementptr inbounds i16, ptr %.059107, i64 %257
  %259 = load float, ptr %86, align 8, !tbaa !49
  %260 = load float, ptr %62, align 8, !tbaa !22
  %261 = fsub float %260, %259
  store float %261, ptr %62, align 8, !tbaa !22
  %262 = add nuw nsw i32 %.061106, 1
  %263 = load i32, ptr %63, align 8, !tbaa !24
  %264 = add nsw i32 %263, 1
  store i32 %264, ptr %63, align 8, !tbaa !24
  %exitcond.not = icmp eq i32 %262, %umax
  br i1 %exitcond.not, label %265, label %105, !llvm.loop !50

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

266:                                              ; preds = %265, %35
  %.160 = phi ptr [ %258, %265 ], [ %2, %35 ]
  %267 = getelementptr inbounds i8, ptr %0, i64 528
  store ptr %18, ptr %267, align 8, !tbaa !23
  %268 = ptrtoint ptr %.160 to i64
  %269 = ptrtoint ptr %2 to i64
  %270 = sub i64 %268, %269
  %271 = lshr exact i64 %270, 1
  %272 = trunc i64 %271 to i32
  br label %273

273:                                              ; preds = %3, %266
  %.056 = phi i32 [ %272, %266 ], [ -1, %3 ]
  ret i32 %.056
}

; Function Attrs: mustprogress nounwind uwtable
declare hidden void @_ZL9set_transP5SlopeP7ElementS2_ii(ptr noundef, ptr noundef, ptr noundef, i32 noundef, i32 noundef) local_unnamed_addr #0

; Function Attrs: mustprogress uwtable
declare hidden noundef float @_ZL11interpolateP5SlopeS0_fii(ptr noundef, ptr noundef, float noundef, i32 noundef, i32 noundef) local_unnamed_addr #2

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

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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #3 = { mustprogress nocallback nofree nosync nounwind speculatable willreturn memory(none) }
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, !11, i64 360}
!6 = !{!"_ZTS5klatt", !7, i64 0, !7, i64 20, !7, i64 40, !7, i64 60, !7, i64 80, !7, i64 100, !7, i64 120, !7, i64 140, !7, i64 160, !7, i64 180, !7, i64 200, !7, i64 220, !11, i64 240, !8, i64 244, !8, i64 248, !11, i64 252, !11, i64 256, !11, i64 260, !11, i64 264, !11, i64 268, !11, i64 272, !11, i64 276, !11, i64 280, !11, i64 284, !11, i64 288, !11, i64 292, !11, i64 296, !8, i64 300, !8, i64 304, !8, i64 308, !8, i64 312, !8, i64 316, !11, i64 320, !8, i64 324, !8, i64 328, !8, i64 332, !8, i64 336, !8, i64 340, !11, i64 344, !11, i64 348, !12, i64 352, !11, i64 360, !13, i64 364, !12, i64 528, !11, i64 536, !11, i64 540, !14, i64 544, !14, i64 552, !8, i64 560}
!7 = !{!"_ZTS9resonator", !8, i64 0, !8, i64 4, !8, i64 8, !8, i64 12, !8, i64 16}
!8 = !{!"float", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C++ TBAA"}
!11 = !{!"int", !9, i64 0}
!12 = !{!"any pointer", !9, i64 0}
!13 = !{!"_ZTS11klatt_frame", !11, i64 0, !11, i64 4, !11, i64 8, !11, i64 12, !11, i64 16, !11, i64 20, !11, i64 24, !11, i64 28, !11, i64 32, !11, i64 36, !11, i64 40, !11, i64 44, !11, i64 48, !11, i64 52, !11, i64 56, !11, i64 60, !11, i64 64, !11, i64 68, !11, i64 72, !11, i64 76, !11, i64 80, !11, i64 84, !11, i64 88, !11, i64 92, !11, i64 96, !11, i64 100, !11, i64 104, !11, i64 108, !11, i64 112, !11, i64 116, !11, i64 120, !11, i64 124, !11, i64 128, !11, i64 132, !11, i64 136, !11, i64 140, !11, i64 144, !11, i64 148, !11, i64 152, !11, i64 156}
!14 = !{!"_ZTS5Slope", !8, i64 0, !11, i64 4}
!15 = !{!6, !11, i64 348}
!16 = !{!6, !12, i64 352}
!17 = !{!9, !9, i64 0}
!18 = !{!19, !9, i64 8}
!19 = !{!"_ZTS7Element", !12, i64 0, !9, i64 8, !9, i64 9, !9, i64 10, !9, i64 11, !12, i64 16, !12, i64 24, !11, i64 32, !9, i64 36}
!20 = !{!6, !11, i64 240}
!21 = !{!6, !11, i64 364}
!22 = !{!6, !8, i64 560}
!23 = !{!6, !12, i64 528}
!24 = !{!6, !11, i64 536}
!25 = !{!6, !11, i64 540}
!26 = !{!19, !11, i64 32}
!27 = !{!6, !8, i64 552}
!28 = distinct !{!28, !29}
!29 = !{!"llvm.loop.mustprogress"}
!30 = !{!31, !8, i64 0}
!31 = !{!"_ZTS6Interp", !8, i64 0, !8, i64 4, !9, i64 8, !9, i64 9, !9, i64 10}
!32 = !{!6, !11, i64 452}
!33 = !{!6, !11, i64 420}
!34 = !{!6, !11, i64 436}
!35 = !{!6, !11, i64 444}
!36 = !{!6, !11, i64 516}
!37 = !{!6, !11, i64 464}
!38 = !{!11, !11, i64 0}
!39 = !{!6, !11, i64 472}
!40 = !{!6, !11, i64 480}
!41 = !{!6, !11, i64 512}
!42 = !{!6, !11, i64 492}
!43 = !{!6, !11, i64 500}
!44 = !{!6, !11, i64 460}
!45 = !{!6, !11, i64 468}
!46 = !{!6, !11, i64 476}
!47 = !{!6, !11, i64 484}
!48 = !{!6, !11, i64 264}
!49 = !{!6, !8, i64 248}
!50 = distinct !{!50, !29}


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