; LLVM IR from CLASS-SZ/class_sz :: class-sz/source (transfer)

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

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [74 x i8], align 1
@__func__.transfer_get_lmax = external hidden unnamed_addr constant [18 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [84 x i8], align 1

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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind uwtable
define dso_local i32 @transfer_get_lmax(ptr noundef %0, i32 noundef %1, double noundef %2, ptr noundef %3, i32 noundef %4, double noundef %5, double noundef %6, double noundef %7, ptr noundef %8, ptr noundef %9, ptr noundef %10) #2 {
  %12 = alloca i32, align 4
  %13 = alloca ptr, align 8
  %14 = alloca i32, align 4
  %15 = alloca double, align 8
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca double, align 8
  %19 = alloca double, align 8
  %20 = alloca double, align 8
  %21 = alloca ptr, align 8
  %22 = alloca ptr, align 8
  %23 = alloca ptr, align 8
  %24 = alloca double, align 8
  %25 = alloca i32, align 4
  %26 = alloca i32, align 4
  %27 = alloca i32, align 4
  %28 = alloca i32, align 4
  %29 = alloca i32, align 4
  %30 = alloca i32, align 4
  %31 = alloca i32, align 4
  %32 = alloca [2048 x i8], align 16
  %33 = alloca i32, align 4
  %34 = alloca [2048 x i8], align 16
  %35 = alloca [2048 x i8], align 16
  %36 = alloca [2048 x i8], align 16
  %37 = alloca [2048 x i8], align 16
  store ptr %0, ptr %13, align 8, !tbaa !5
  store i32 %1, ptr %14, align 4, !tbaa !9
  store double %2, ptr %15, align 8, !tbaa !11
  store ptr %3, ptr %16, align 8, !tbaa !5
  store i32 %4, ptr %17, align 4, !tbaa !9
  store double %5, ptr %18, align 8, !tbaa !11
  store double %6, ptr %19, align 8, !tbaa !11
  store double %7, ptr %20, align 8, !tbaa !11
  store ptr %8, ptr %21, align 8, !tbaa !5
  store ptr %9, ptr %22, align 8, !tbaa !5
  store ptr %10, ptr %23, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #3
  store i32 0, ptr %25, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %28) #3
  store i32 0, ptr %28, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %29) #3
  store i32 0, ptr %29, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %30) #3
  store i32 0, ptr %30, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %31) #3
  store i32 0, ptr %31, align 4, !tbaa !9
  %38 = load ptr, ptr %13, align 8, !tbaa !5
  %39 = load i32, ptr %14, align 4, !tbaa !9
  %40 = load ptr, ptr %16, align 8, !tbaa !5
  %41 = getelementptr inbounds i32, ptr %40, i64 0
  %42 = load i32, ptr %41, align 4, !tbaa !9
  %43 = load double, ptr %15, align 8, !tbaa !11
  %44 = load double, ptr %20, align 8, !tbaa !11
  %45 = load double, ptr %18, align 8, !tbaa !11
  %46 = call i32 %38(i32 noundef %39, i32 noundef %42, double noundef %43, double noundef %44, double noundef %45, ptr noundef %24, ptr noundef %25)
  %47 = icmp eq i32 %46, 1
  br i1 %47, label %48, label %53

48:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 2048, ptr %32) #3
  %49 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  %50 = load ptr, ptr %23, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %49, ptr noundef @.str, ptr noundef @.str.150, ptr noundef %50)
  %51 = load ptr, ptr %23, align 8, !tbaa !5
  %52 = getelementptr inbounds [2048 x i8], ptr %32, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %51, ptr noundef @.str.2, ptr noundef @__func__.transfer_get_lmax, i32 noundef 4467, ptr noundef %52)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %32) #3
  store i32 1, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %250

53:                                               ; preds = %11
  %54 = load double, ptr %24, align 8, !tbaa !11
  %55 = load double, ptr %19, align 8, !tbaa !11
  %56 = fcmp oge double %54, %55
  br i1 %56, label %57, label %68

57:                                               ; preds = %53
  %58 = load i32, ptr %17, align 4, !tbaa !9
  %59 = sub nsw i32 %58, 1
  %60 = icmp slt i32 %59, 1
  br i1 %60, label %61, label %62

61:                                               ; preds = %57
  br label %65

62:                                               ; preds = %57
  %63 = load i32, ptr %17, align 4, !tbaa !9
  %64 = sub nsw i32 %63, 1
  br label %65

65:                                               ; preds = %62, %61
  %66 = phi i32 [ 1, %61 ], [ %64, %62 ]
  %67 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 %66, ptr %67, align 4, !tbaa !9
  store i32 0, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %250

68:                                               ; preds = %53
  %69 = load ptr, ptr %13, align 8, !tbaa !5
  %70 = load i32, ptr %14, align 4, !tbaa !9
  %71 = load ptr, ptr %16, align 8, !tbaa !5
  %72 = load i32, ptr %17, align 4, !tbaa !9
  %73 = sub nsw i32 %72, 1
  %74 = sext i32 %73 to i64
  %75 = getelementptr inbounds i32, ptr %71, i64 %74
  %76 = load i32, ptr %75, align 4, !tbaa !9
  %77 = load double, ptr %15, align 8, !tbaa !11
  %78 = load double, ptr %20, align 8, !tbaa !11
  %79 = load double, ptr %18, align 8, !tbaa !11
  %80 = call i32 %69(i32 noundef %70, i32 noundef %76, double noundef %77, double noundef %78, double noundef %79, ptr noundef %24, ptr noundef %25)
  %81 = icmp eq i32 %80, 1
  br i1 %81, label %82, label %87

82:                                               ; preds = %68
  call void @llvm.lifetime.start.p0(i64 2048, ptr %34) #3
  %83 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  %84 = load ptr, ptr %23, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %83, ptr noundef @.str, ptr noundef @.str.151, ptr noundef %84)
  %85 = load ptr, ptr %23, align 8, !tbaa !5
  %86 = getelementptr inbounds [2048 x i8], ptr %34, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %85, ptr noundef @.str.2, ptr noundef @__func__.transfer_get_lmax, i32 noundef 4482, ptr noundef %86)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %34) #3
  store i32 1, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %250

87:                                               ; preds = %68
  %88 = load double, ptr %24, align 8, !tbaa !11
  %89 = load double, ptr %19, align 8, !tbaa !11
  %90 = fcmp olt double %88, %89
  br i1 %90, label %91, label %102

91:                                               ; preds = %87
  %92 = load i32, ptr %17, align 4, !tbaa !9
  %93 = sub nsw i32 %92, 2
  %94 = icmp slt i32 0, %93
  br i1 %94, label %95, label %98

95:                                               ; preds = %91
  %96 = load i32, ptr %17, align 4, !tbaa !9
  %97 = sub nsw i32 %96, 2
  br label %99

98:                                               ; preds = %91
  br label %99

99:                                               ; preds = %98, %95
  %100 = phi i32 [ %97, %95 ], [ 0, %98 ]
  %101 = load ptr, ptr %21, align 8, !tbaa !5
  store i32 %100, ptr %101, align 4, !tbaa !9
  store i32 0, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %250

102:                                              ; preds = %87
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %103

103:                                              ; preds = %145, %102
  %104 = load i32, ptr %29, align 4, !tbaa !9
  %105 = add nsw i32 %104, 1
  store i32 %105, ptr %29, align 4, !tbaa !9
  %106 = load ptr, ptr %13, align 8, !tbaa !5
  %107 = load i32, ptr %14, align 4, !tbaa !9
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  %109 = load ptr, ptr %21, align 8, !tbaa !5
  %110 = load i32, ptr %109, align 4, !tbaa !9
  %111 = sext i32 %110 to i64
  %112 = getelementptr inbounds i32, ptr %108, i64 %111
  %113 = load i32, ptr %112, align 4, !tbaa !9
  %114 = load double, ptr %15, align 8, !tbaa !11
  %115 = load double, ptr %20, align 8, !tbaa !11
  %116 = load double, ptr %18, align 8, !tbaa !11
  %117 = call i32 %106(i32 noundef %107, i32 noundef %113, double noundef %114, double noundef %115, double noundef %116, ptr noundef %24, ptr noundef %25)
  %118 = icmp eq i32 %117, 1
  br i1 %118, label %119, label %124

119:                                              ; preds = %103
  call void @llvm.lifetime.start.p0(i64 2048, ptr %35) #3
  %120 = getelementptr inbounds [2048 x i8], ptr %35, i64 0, i64 0
  %121 = load ptr, ptr %23, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %120, ptr noundef @.str, ptr noundef @.str.152, ptr noundef %121)
  %122 = load ptr, ptr %23, align 8, !tbaa !5
  %123 = getelementptr inbounds [2048 x i8], ptr %35, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %122, ptr noundef @.str.2, ptr noundef @__func__.transfer_get_lmax, i32 noundef 4501, ptr noundef %123)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %35) #3
  store i32 1, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %250

124:                                              ; preds = %103
  %125 = load double, ptr %24, align 8, !tbaa !11
  %126 = load double, ptr %19, align 8, !tbaa !11
  %127 = fcmp ole double %125, %126
  br i1 %127, label %128, label %129

128:                                              ; preds = %124
  br label %148

129:                                              ; preds = %124
  %130 = load ptr, ptr %21, align 8, !tbaa !5
  %131 = load i32, ptr %130, align 4, !tbaa !9
  %132 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 %131, ptr %132, align 4, !tbaa !9
  store i32 1, ptr %28, align 4, !tbaa !9
  br label %133

133:                                              ; preds = %129
  %134 = load ptr, ptr %21, align 8, !tbaa !5
  %135 = load i32, ptr %134, align 4, !tbaa !9
  %136 = load i32, ptr %27, align 4, !tbaa !9
  %137 = sub nsw i32 %135, %136
  %138 = load ptr, ptr %21, align 8, !tbaa !5
  store i32 %137, ptr %138, align 4, !tbaa !9
  %139 = load ptr, ptr %21, align 8, !tbaa !5
  %140 = load i32, ptr %139, align 4, !tbaa !9
  %141 = icmp sle i32 %140, 0
  br i1 %141, label %142, label %144

142:                                              ; preds = %133
  %143 = load ptr, ptr %21, align 8, !tbaa !5
  store i32 0, ptr %143, align 4, !tbaa !9
  br label %148

144:                                              ; preds = %133
  br label %145

145:                                              ; preds = %144
  %146 = load i32, ptr %27, align 4, !tbaa !9
  %147 = mul nsw i32 %146, 5
  store i32 %147, ptr %27, align 4, !tbaa !9
  br label %103

148:                                              ; preds = %142, %128
  %149 = load i32, ptr %28, align 4, !tbaa !9
  %150 = icmp eq i32 %149, 0
  br i1 %150, label %151, label %202

151:                                              ; preds = %148
  store i32 1, ptr %27, align 4, !tbaa !9
  br label %152

152:                                              ; preds = %198, %151
  %153 = load i32, ptr %30, align 4, !tbaa !9
  %154 = add nsw i32 %153, 1
  store i32 %154, ptr %30, align 4, !tbaa !9
  %155 = load ptr, ptr %13, align 8, !tbaa !5
  %156 = load i32, ptr %14, align 4, !tbaa !9
  %157 = load ptr, ptr %16, align 8, !tbaa !5
  %158 = load ptr, ptr %22, align 8, !tbaa !5
  %159 = load i32, ptr %158, align 4, !tbaa !9
  %160 = sext i32 %159 to i64
  %161 = getelementptr inbounds i32, ptr %157, i64 %160
  %162 = load i32, ptr %161, align 4, !tbaa !9
  %163 = load double, ptr %15, align 8, !tbaa !11
  %164 = load double, ptr %20, align 8, !tbaa !11
  %165 = load double, ptr %18, align 8, !tbaa !11
  %166 = call i32 %155(i32 noundef %156, i32 noundef %162, double noundef %163, double noundef %164, double noundef %165, ptr noundef %24, ptr noundef %25)
  %167 = icmp eq i32 %166, 1
  br i1 %167, label %168, label %173

168:                                              ; preds = %152
  call void @llvm.lifetime.start.p0(i64 2048, ptr %36) #3
  %169 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  %170 = load ptr, ptr %23, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %169, ptr noundef @.str, ptr noundef @.str.153, ptr noundef %170)
  %171 = load ptr, ptr %23, align 8, !tbaa !5
  %172 = getelementptr inbounds [2048 x i8], ptr %36, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %171, ptr noundef @.str.2, ptr noundef @__func__.transfer_get_lmax, i32 noundef 4532, ptr noundef %172)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %36) #3
  store i32 1, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %250

173:                                              ; preds = %152
  %174 = load double, ptr %24, align 8, !tbaa !11
  %175 = load double, ptr %19, align 8, !tbaa !11
  %176 = fcmp oge double %174, %175
  br i1 %176, label %177, label %178

177:                                              ; preds = %173
  br label %201

178:                                              ; preds = %173
  %179 = load ptr, ptr %22, align 8, !tbaa !5
  %180 = load i32, ptr %179, align 4, !tbaa !9
  %181 = load ptr, ptr %21, align 8, !tbaa !5
  store i32 %180, ptr %181, align 4, !tbaa !9
  br label %182

182:                                              ; preds = %178
  %183 = load ptr, ptr %22, align 8, !tbaa !5
  %184 = load i32, ptr %183, align 4, !tbaa !9
  %185 = load i32, ptr %27, align 4, !tbaa !9
  %186 = add nsw i32 %184, %185
  %187 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 %186, ptr %187, align 4, !tbaa !9
  %188 = load ptr, ptr %22, align 8, !tbaa !5
  %189 = load i32, ptr %188, align 4, !tbaa !9
  %190 = load i32, ptr %17, align 4, !tbaa !9
  %191 = sub nsw i32 %190, 1
  %192 = icmp sge i32 %189, %191
  br i1 %192, label %193, label %197

193:                                              ; preds = %182
  %194 = load i32, ptr %17, align 4, !tbaa !9
  %195 = sub nsw i32 %194, 1
  %196 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 %195, ptr %196, align 4, !tbaa !9
  br label %201

197:                                              ; preds = %182
  br label %198

198:                                              ; preds = %197
  %199 = load i32, ptr %27, align 4, !tbaa !9
  %200 = mul nsw i32 %199, 5
  store i32 %200, ptr %27, align 4, !tbaa !9
  br label %152

201:                                              ; preds = %193, %177
  br label %202

202:                                              ; preds = %201, %148
  store i32 0, ptr %25, align 4, !tbaa !9
  br label %203

203:                                              ; preds = %248, %202
  %204 = load ptr, ptr %22, align 8, !tbaa !5
  %205 = load i32, ptr %204, align 4, !tbaa !9
  %206 = load ptr, ptr %21, align 8, !tbaa !5
  %207 = load i32, ptr %206, align 4, !tbaa !9
  %208 = sub nsw i32 %205, %207
  %209 = icmp sgt i32 %208, 1
  br i1 %209, label %210, label %249

210:                                              ; preds = %203
  %211 = load i32, ptr %31, align 4, !tbaa !9
  %212 = add nsw i32 %211, 1
  store i32 %212, ptr %31, align 4, !tbaa !9
  %213 = load ptr, ptr %22, align 8, !tbaa !5
  %214 = load i32, ptr %213, align 4, !tbaa !9
  %215 = load ptr, ptr %21, align 8, !tbaa !5
  %216 = load i32, ptr %215, align 4, !tbaa !9
  %217 = add nsw i32 %214, %216
  %218 = sitofp i32 %217 to double
  %219 = fmul double 5.000000e-01, %218
  %220 = fptosi double %219 to i32
  store i32 %220, ptr %26, align 4, !tbaa !9
  %221 = load ptr, ptr %13, align 8, !tbaa !5
  %222 = load i32, ptr %14, align 4, !tbaa !9
  %223 = load ptr, ptr %16, align 8, !tbaa !5
  %224 = load i32, ptr %26, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds i32, ptr %223, i64 %225
  %227 = load i32, ptr %226, align 4, !tbaa !9
  %228 = load double, ptr %15, align 8, !tbaa !11
  %229 = load double, ptr %20, align 8, !tbaa !11
  %230 = load double, ptr %18, align 8, !tbaa !11
  %231 = call i32 %221(i32 noundef %222, i32 noundef %227, double noundef %228, double noundef %229, double noundef %230, ptr noundef %24, ptr noundef %25)
  %232 = icmp eq i32 %231, 1
  br i1 %232, label %233, label %238

233:                                              ; preds = %210
  call void @llvm.lifetime.start.p0(i64 2048, ptr %37) #3
  %234 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  %235 = load ptr, ptr %23, align 8, !tbaa !5
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %234, ptr noundef @.str, ptr noundef @.str.154, ptr noundef %235)
  %236 = load ptr, ptr %23, align 8, !tbaa !5
  %237 = getelementptr inbounds [2048 x i8], ptr %37, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %236, ptr noundef @.str.2, ptr noundef @__func__.transfer_get_lmax, i32 noundef 4566, ptr noundef %237)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %37) #3
  store i32 1, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %250

238:                                              ; preds = %210
  %239 = load double, ptr %24, align 8, !tbaa !11
  %240 = load double, ptr %19, align 8, !tbaa !11
  %241 = fcmp olt double %239, %240
  br i1 %241, label %242, label %245

242:                                              ; preds = %238
  %243 = load i32, ptr %26, align 4, !tbaa !9
  %244 = load ptr, ptr %21, align 8, !tbaa !5
  store i32 %243, ptr %244, align 4, !tbaa !9
  br label %248

245:                                              ; preds = %238
  %246 = load i32, ptr %26, align 4, !tbaa !9
  %247 = load ptr, ptr %22, align 8, !tbaa !5
  store i32 %246, ptr %247, align 4, !tbaa !9
  br label %248

248:                                              ; preds = %245, %242
  br label %203, !llvm.loop !13

249:                                              ; preds = %203
  store i32 0, ptr %12, align 4
  store i32 1, ptr %33, align 4
  br label %250

250:                                              ; preds = %249, %233, %168, %119, %99, %82, %65, %48
  call void @llvm.lifetime.end.p0(i64 4, ptr %31) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %30) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %29) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %28) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %26) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #3
  %251 = load i32, ptr %12, align 4
  ret i32 %251
}

attributes #0 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"int", !7, i64 0}
!11 = !{!12, !12, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.150 = external hidden unnamed_addr constant [74 x i8], align 1
@__func__.transfer_get_lmax = external hidden unnamed_addr constant [18 x i8], align 1
@.str.151 = external hidden unnamed_addr constant [80 x i8], align 1
@.str.152 = external hidden unnamed_addr constant [86 x i8], align 1
@.str.153 = external hidden unnamed_addr constant [87 x i8], align 1
@.str.154 = external hidden unnamed_addr constant [84 x i8], align 1

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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @transfer_get_lmax(ptr nocapture noundef readonly %0, i32 noundef %1, double noundef %2, ptr nocapture noundef readonly %3, i32 noundef %4, double noundef %5, double noundef %6, double noundef %7, ptr nocapture noundef %8, ptr nocapture noundef %9, ptr noundef %10) local_unnamed_addr #2 {
  %12 = alloca double, align 8
  %13 = alloca i32, align 4
  %14 = alloca [2048 x i8], align 16
  %15 = alloca [2048 x i8], align 16
  %16 = alloca [2048 x i8], align 16
  %17 = alloca [2048 x i8], align 16
  %18 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %12) #4
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %13) #4
  store i32 0, ptr %13, align 4, !tbaa !5
  %19 = load i32, ptr %3, align 4, !tbaa !5
  %20 = call i32 %0(i32 noundef %1, i32 noundef %19, double noundef %2, double noundef %7, double noundef %5, ptr noundef nonnull %12, ptr noundef nonnull %13) #4
  %21 = icmp eq i32 %20, 1
  br i1 %21, label %22, label %23

22:                                               ; preds = %11
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str, ptr noundef nonnull @.str.150, ptr noundef %10) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %10, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_get_lmax, i32 noundef 4467, ptr noundef nonnull %14) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #4
  br label %.loopexit

23:                                               ; preds = %11
  %24 = load double, ptr %12, align 8, !tbaa !9
  %25 = fcmp ult double %24, %6
  br i1 %25, label %29, label %26

26:                                               ; preds = %23
  %27 = call i32 @llvm.smax.i32(i32 %4, i32 2)
  %28 = add nsw i32 %27, -1
  store i32 %28, ptr %9, align 4, !tbaa !5
  br label %.loopexit

29:                                               ; preds = %23
  %30 = add nsw i32 %4, -1
  %31 = sext i32 %30 to i64
  %32 = getelementptr inbounds i32, ptr %3, i64 %31
  %33 = load i32, ptr %32, align 4, !tbaa !5
  %34 = call i32 %0(i32 noundef %1, i32 noundef %33, double noundef %2, double noundef %7, double noundef %5, ptr noundef nonnull %12, ptr noundef nonnull %13) #4
  %35 = icmp eq i32 %34, 1
  br i1 %35, label %36, label %37

36:                                               ; preds = %29
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str, ptr noundef nonnull @.str.151, ptr noundef %10) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %10, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_get_lmax, i32 noundef 4482, ptr noundef nonnull %15) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #4
  br label %.loopexit

37:                                               ; preds = %29
  %38 = load double, ptr %12, align 8, !tbaa !9
  %39 = fcmp olt double %38, %6
  br i1 %39, label %58, label %.preheader95

.preheader95:                                     ; preds = %37
  %40 = load i32, ptr %8, align 4, !tbaa !5
  %41 = sext i32 %40 to i64
  %42 = getelementptr inbounds i32, ptr %3, i64 %41
  %43 = load i32, ptr %42, align 4, !tbaa !5
  %44 = call i32 %0(i32 noundef %1, i32 noundef %43, double noundef %2, double noundef %7, double noundef %5, ptr noundef nonnull %12, ptr noundef nonnull %13) #4
  %45 = icmp eq i32 %44, 1
  br i1 %45, label %._crit_edge, label %.lr.ph.preheader

.lr.ph.preheader:                                 ; preds = %.preheader95
  %46 = load double, ptr %12, align 8, !tbaa !9
  %47 = fcmp ole double %46, %6
  br i1 %47, label %.preheader, label %48

48:                                               ; preds = %.lr.ph.preheader
  %49 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %49, ptr %9, align 4, !tbaa !5
  %50 = add nsw i32 %49, -1
  store i32 %50, ptr %8, align 4, !tbaa !5
  %51 = icmp slt i32 %49, 2
  br i1 %51, label %.thread, label %52

52:                                               ; preds = %48
  %53 = zext nneg i32 %50 to i64
  %54 = getelementptr inbounds i32, ptr %3, i64 %53
  %55 = load i32, ptr %54, align 4, !tbaa !5
  %56 = call i32 %0(i32 noundef %1, i32 noundef %55, double noundef %2, double noundef %7, double noundef %5, ptr noundef nonnull %12, ptr noundef nonnull %13) #4
  %57 = icmp eq i32 %56, 1
  br i1 %57, label %._crit_edge, label %.lr.ph

58:                                               ; preds = %37
  %59 = call i32 @llvm.smax.i32(i32 %4, i32 2)
  %60 = add nsw i32 %59, -2
  store i32 %60, ptr %8, align 4, !tbaa !5
  br label %.loopexit

._crit_edge:                                      ; preds = %67, %52, %.preheader95
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %16) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.152, ptr noundef %10) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %10, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_get_lmax, i32 noundef 4501, ptr noundef nonnull %16) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #4
  br label %.loopexit

.lr.ph:                                           ; preds = %52, %67
  %.08898 = phi i32 [ %68, %67 ], [ 5, %52 ]
  %61 = load double, ptr %12, align 8, !tbaa !9
  %62 = fcmp ugt double %61, %6
  br i1 %62, label %63, label %.loopexit107

63:                                               ; preds = %.lr.ph
  %64 = load i32, ptr %8, align 4, !tbaa !5
  store i32 %64, ptr %9, align 4, !tbaa !5
  %65 = sub nsw i32 %64, %.08898
  store i32 %65, ptr %8, align 4, !tbaa !5
  %66 = icmp slt i32 %65, 1
  br i1 %66, label %.thread, label %67

.thread:                                          ; preds = %63, %48
  store i32 0, ptr %8, align 4, !tbaa !5
  br label %.loopexit94

67:                                               ; preds = %63
  %68 = mul nuw nsw i32 %.08898, 5
  %69 = zext nneg i32 %65 to i64
  %70 = getelementptr inbounds i32, ptr %3, i64 %69
  %71 = load i32, ptr %70, align 4, !tbaa !5
  %72 = call i32 %0(i32 noundef %1, i32 noundef %71, double noundef %2, double noundef %7, double noundef %5, ptr noundef nonnull %12, ptr noundef nonnull %13) #4
  %73 = icmp eq i32 %72, 1
  br i1 %73, label %._crit_edge, label %.lr.ph, !llvm.loop !11

.loopexit107:                                     ; preds = %.lr.ph
  br i1 %47, label %.preheader, label %.loopexit94

.preheader:                                       ; preds = %.lr.ph.preheader, %.loopexit107
  %74 = load i32, ptr %9, align 4, !tbaa !5
  %75 = sext i32 %74 to i64
  %76 = getelementptr inbounds i32, ptr %3, i64 %75
  %77 = load i32, ptr %76, align 4, !tbaa !5
  %78 = call i32 %0(i32 noundef %1, i32 noundef %77, double noundef %2, double noundef %7, double noundef %5, ptr noundef nonnull %12, ptr noundef nonnull %13) #4
  %79 = icmp eq i32 %78, 1
  br i1 %79, label %._crit_edge101, label %.lr.ph100

._crit_edge101:                                   ; preds = %86, %.preheader
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %17) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %17, ptr noundef nonnull @.str, ptr noundef nonnull @.str.153, ptr noundef %10) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %10, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_get_lmax, i32 noundef 4532, ptr noundef nonnull %17) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %17) #4
  br label %.loopexit

.lr.ph100:                                        ; preds = %.preheader, %86
  %.18999 = phi i32 [ %87, %86 ], [ 1, %.preheader ]
  %80 = load double, ptr %12, align 8, !tbaa !9
  %81 = fcmp ult double %80, %6
  br i1 %81, label %82, label %.loopexit94

82:                                               ; preds = %.lr.ph100
  %83 = load i32, ptr %9, align 4, !tbaa !5
  store i32 %83, ptr %8, align 4, !tbaa !5
  %84 = add nsw i32 %83, %.18999
  store i32 %84, ptr %9, align 4, !tbaa !5
  %.not = icmp slt i32 %84, %30
  br i1 %.not, label %86, label %85

85:                                               ; preds = %82
  store i32 %30, ptr %9, align 4, !tbaa !5
  br label %.loopexit94

86:                                               ; preds = %82
  %87 = mul nuw nsw i32 %.18999, 5
  %88 = sext i32 %84 to i64
  %89 = getelementptr inbounds i32, ptr %3, i64 %88
  %90 = load i32, ptr %89, align 4, !tbaa !5
  %91 = call i32 %0(i32 noundef %1, i32 noundef %90, double noundef %2, double noundef %7, double noundef %5, ptr noundef nonnull %12, ptr noundef nonnull %13) #4
  %92 = icmp eq i32 %91, 1
  br i1 %92, label %._crit_edge101, label %.lr.ph100

.loopexit94:                                      ; preds = %.lr.ph100, %.thread, %85, %.loopexit107
  store i32 0, ptr %13, align 4, !tbaa !5
  %93 = load i32, ptr %9, align 4, !tbaa !5
  %94 = load i32, ptr %8, align 4, !tbaa !5
  %95 = sub nsw i32 %93, %94
  %96 = icmp sgt i32 %95, 1
  br i1 %96, label %.lr.ph103, label %.loopexit

.lr.ph103:                                        ; preds = %.loopexit94, %114
  %97 = phi i32 [ %115, %114 ], [ %94, %.loopexit94 ]
  %98 = phi i32 [ %116, %114 ], [ %93, %.loopexit94 ]
  %99 = add nsw i32 %97, %98
  %100 = sitofp i32 %99 to double
  %101 = fmul double %100, 5.000000e-01
  %102 = fptosi double %101 to i32
  %103 = sext i32 %102 to i64
  %104 = getelementptr inbounds i32, ptr %3, i64 %103
  %105 = load i32, ptr %104, align 4, !tbaa !5
  %106 = call i32 %0(i32 noundef %1, i32 noundef %105, double noundef %2, double noundef %7, double noundef %5, ptr noundef nonnull %12, ptr noundef nonnull %13) #4
  %107 = icmp eq i32 %106, 1
  br i1 %107, label %108, label %109

108:                                              ; preds = %.lr.ph103
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %18) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %18, ptr noundef nonnull @.str, ptr noundef nonnull @.str.154, ptr noundef %10) #4
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %10, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_get_lmax, i32 noundef 4566, ptr noundef nonnull %18) #4
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %18) #4
  br label %.loopexit

109:                                              ; preds = %.lr.ph103
  %110 = load double, ptr %12, align 8, !tbaa !9
  %111 = fcmp olt double %110, %6
  br i1 %111, label %112, label %113

112:                                              ; preds = %109
  store i32 %102, ptr %8, align 4, !tbaa !5
  %.pre = load i32, ptr %9, align 4, !tbaa !5
  br label %114

113:                                              ; preds = %109
  store i32 %102, ptr %9, align 4, !tbaa !5
  %.pre108 = load i32, ptr %8, align 4, !tbaa !5
  br label %114

114:                                              ; preds = %113, %112
  %115 = phi i32 [ %.pre108, %113 ], [ %102, %112 ]
  %116 = phi i32 [ %102, %113 ], [ %.pre, %112 ]
  %117 = sub nsw i32 %116, %115
  %118 = icmp sgt i32 %117, 1
  br i1 %118, label %.lr.ph103, label %.loopexit, !llvm.loop !13

.loopexit:                                        ; preds = %114, %.loopexit94, %108, %._crit_edge101, %._crit_edge, %58, %36, %26, %22
  %.090 = phi i32 [ 1, %22 ], [ 0, %26 ], [ 1, %36 ], [ 0, %58 ], [ 1, %._crit_edge ], [ 1, %._crit_edge101 ], [ 1, %108 ], [ 0, %.loopexit94 ], [ 0, %114 ]
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %13) #4
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %12) #4
  ret i32 %.090
}

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

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { "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 = { 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/C++ TBAA"}
!9 = !{!10, !10, i64 0}
!10 = !{!"double", !7, i64 0}
!11 = distinct !{!11, !12}
!12 = !{!"llvm.loop.peeled.count", i32 1}
!13 = distinct !{!13, !14}
!14 = !{!"llvm.loop.mustprogress"}


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