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

%struct.transfers = type { double, double, double, [100 x double], [100 x double], i16, i16, [256 x i8], i32, ptr, ptr, ptr, i16, i16, [256 x i8], i32, ptr, ptr, ptr, ptr, i16, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, i32, ptr, ptr, ptr, i32, ptr, double, i64, ptr, ptr, i32, ptr, i16, i16, [2048 x i8] }

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [19 x i8], align 1
@__func__.transfer_global_selection_read = external hidden unnamed_addr constant [31 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [129 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 allocsize(0)
declare noalias ptr @malloc(i64 noundef) #2

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

37:                                               ; preds = %1
  %38 = load ptr, ptr %3, align 8, !tbaa !5
  %39 = getelementptr inbounds %struct.transfers, ptr %38, i32 0, i32 7
  %40 = getelementptr inbounds [256 x i8], ptr %39, i64 0, i64 0
  %41 = call noalias ptr @fopen(ptr noundef %40, ptr noundef @.str.121)
  store ptr %41, ptr %4, align 8, !tbaa !5
  %42 = load ptr, ptr %4, align 8, !tbaa !5
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %55

44:                                               ; preds = %37
  call void @llvm.lifetime.start.p0(i64 2048, ptr %9) #5
  %45 = getelementptr inbounds [2048 x i8], ptr %9, i64 0, i64 0
  %46 = load ptr, ptr %3, align 8, !tbaa !5
  %47 = getelementptr inbounds %struct.transfers, ptr %46, i32 0, i32 7
  %48 = getelementptr inbounds [256 x i8], ptr %47, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %45, ptr noundef @.str.122, ptr noundef %48)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %10) #5
  %49 = getelementptr inbounds [2048 x i8], ptr %10, i64 0, i64 0
  %50 = getelementptr inbounds [2048 x i8], ptr %9, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %49, ptr noundef @.str.42, ptr noundef @.str.123, ptr noundef %50)
  %51 = load ptr, ptr %3, align 8, !tbaa !5
  %52 = getelementptr inbounds %struct.transfers, ptr %51, i32 0, i32 52
  %53 = getelementptr inbounds [2048 x i8], ptr %52, i64 0, i64 0
  %54 = getelementptr inbounds [2048 x i8], ptr %10, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %53, ptr noundef @.str.2, ptr noundef @__func__.transfer_global_selection_read, i32 noundef 4167, ptr noundef %54)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %10) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %9) #5
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %542

55:                                               ; preds = %37
  store i32 0, ptr %5, align 4, !tbaa !16
  store i32 2, ptr %6, align 4, !tbaa !16
  br label %56

56:                                               ; preds = %62, %55
  %57 = load i32, ptr %6, align 4, !tbaa !16
  %58 = icmp eq i32 %57, 2
  br i1 %58, label %59, label %65

59:                                               ; preds = %56
  %60 = load ptr, ptr %4, align 8, !tbaa !5
  %61 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %60, ptr noundef @.str.124, ptr noundef %7, ptr noundef %8)
  store i32 %61, ptr %6, align 4, !tbaa !16
  br label %62

62:                                               ; preds = %59
  %63 = load i32, ptr %5, align 4, !tbaa !16
  %64 = add nsw i32 %63, 1
  store i32 %64, ptr %5, align 4, !tbaa !16
  br label %56, !llvm.loop !17

65:                                               ; preds = %56
  %66 = load ptr, ptr %4, align 8, !tbaa !5
  call void @rewind(ptr noundef %66)
  %67 = load i32, ptr %5, align 4, !tbaa !16
  %68 = sub nsw i32 %67, 1
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.transfers, ptr %69, i32 0, i32 8
  store i32 %68, ptr %70, align 4, !tbaa !9
  %71 = load ptr, ptr %3, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.transfers, ptr %71, i32 0, i32 8
  %73 = load i32, ptr %72, align 4, !tbaa !9
  %74 = sext i32 %73 to i64
  %75 = mul i64 8, %74
  %76 = call noalias ptr @malloc(i64 noundef %75) #6
  %77 = load ptr, ptr %3, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.transfers, ptr %77, i32 0, i32 9
  store ptr %76, ptr %78, align 8, !tbaa !19
  %79 = load ptr, ptr %3, align 8, !tbaa !5
  %80 = getelementptr inbounds %struct.transfers, ptr %79, i32 0, i32 9
  %81 = load ptr, ptr %80, align 8, !tbaa !19
  %82 = icmp eq ptr %81, null
  br i1 %82, label %83, label %96

83:                                               ; preds = %65
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #5
  %84 = load ptr, ptr %3, align 8, !tbaa !5
  %85 = getelementptr inbounds %struct.transfers, ptr %84, i32 0, i32 8
  %86 = load i32, ptr %85, align 4, !tbaa !9
  %87 = sext i32 %86 to i64
  %88 = mul i64 8, %87
  %89 = trunc i64 %88 to i32
  store i32 %89, ptr %12, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 2048, ptr %13) #5
  %90 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  %91 = load i32, ptr %12, align 4, !tbaa !16
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %90, ptr noundef @.str.6, ptr noundef @.str.125, i32 noundef %91)
  %92 = load ptr, ptr %3, align 8, !tbaa !5
  %93 = getelementptr inbounds %struct.transfers, ptr %92, i32 0, i32 52
  %94 = getelementptr inbounds [2048 x i8], ptr %93, i64 0, i64 0
  %95 = getelementptr inbounds [2048 x i8], ptr %13, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %94, ptr noundef @.str.2, ptr noundef @__func__.transfer_global_selection_read, i32 noundef 4177, ptr noundef %95)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %13) #5
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #5
  br label %542

96:                                               ; preds = %65
  %97 = load ptr, ptr %3, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.transfers, ptr %97, i32 0, i32 8
  %99 = load i32, ptr %98, align 4, !tbaa !9
  %100 = sext i32 %99 to i64
  %101 = mul i64 8, %100
  %102 = call noalias ptr @malloc(i64 noundef %101) #6
  %103 = load ptr, ptr %3, align 8, !tbaa !5
  %104 = getelementptr inbounds %struct.transfers, ptr %103, i32 0, i32 10
  store ptr %102, ptr %104, align 8, !tbaa !20
  %105 = load ptr, ptr %3, align 8, !tbaa !5
  %106 = getelementptr inbounds %struct.transfers, ptr %105, i32 0, i32 10
  %107 = load ptr, ptr %106, align 8, !tbaa !20
  %108 = icmp eq ptr %107, null
  br i1 %108, label %109, label %122

109:                                              ; preds = %96
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #5
  %110 = load ptr, ptr %3, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.transfers, ptr %110, i32 0, i32 8
  %112 = load i32, ptr %111, align 4, !tbaa !9
  %113 = sext i32 %112 to i64
  %114 = mul i64 8, %113
  %115 = trunc i64 %114 to i32
  store i32 %115, ptr %14, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 2048, ptr %15) #5
  %116 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  %117 = load i32, ptr %14, align 4, !tbaa !16
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %116, ptr noundef @.str.6, ptr noundef @.str.126, i32 noundef %117)
  %118 = load ptr, ptr %3, align 8, !tbaa !5
  %119 = getelementptr inbounds %struct.transfers, ptr %118, i32 0, i32 52
  %120 = getelementptr inbounds [2048 x i8], ptr %119, i64 0, i64 0
  %121 = getelementptr inbounds [2048 x i8], ptr %15, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %120, ptr noundef @.str.2, ptr noundef @__func__.transfer_global_selection_read, i32 noundef 4178, ptr noundef %121)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %15) #5
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #5
  br label %542

122:                                              ; preds = %96
  %123 = load ptr, ptr %3, align 8, !tbaa !5
  %124 = getelementptr inbounds %struct.transfers, ptr %123, i32 0, i32 8
  %125 = load i32, ptr %124, align 4, !tbaa !9
  %126 = sext i32 %125 to i64
  %127 = mul i64 8, %126
  %128 = call noalias ptr @malloc(i64 noundef %127) #6
  %129 = load ptr, ptr %3, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.transfers, ptr %129, i32 0, i32 11
  store ptr %128, ptr %130, align 8, !tbaa !21
  %131 = load ptr, ptr %3, align 8, !tbaa !5
  %132 = getelementptr inbounds %struct.transfers, ptr %131, i32 0, i32 11
  %133 = load ptr, ptr %132, align 8, !tbaa !21
  %134 = icmp eq ptr %133, null
  br i1 %134, label %135, label %148

135:                                              ; preds = %122
  call void @llvm.lifetime.start.p0(i64 4, ptr %16) #5
  %136 = load ptr, ptr %3, align 8, !tbaa !5
  %137 = getelementptr inbounds %struct.transfers, ptr %136, i32 0, i32 8
  %138 = load i32, ptr %137, align 4, !tbaa !9
  %139 = sext i32 %138 to i64
  %140 = mul i64 8, %139
  %141 = trunc i64 %140 to i32
  store i32 %141, ptr %16, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 2048, ptr %17) #5
  %142 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  %143 = load i32, ptr %16, align 4, !tbaa !16
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %142, ptr noundef @.str.6, ptr noundef @.str.127, i32 noundef %143)
  %144 = load ptr, ptr %3, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.transfers, ptr %144, i32 0, i32 52
  %146 = getelementptr inbounds [2048 x i8], ptr %145, i64 0, i64 0
  %147 = getelementptr inbounds [2048 x i8], ptr %17, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %146, ptr noundef @.str.2, ptr noundef @__func__.transfer_global_selection_read, i32 noundef 4179, ptr noundef %147)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %17) #5
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %16) #5
  br label %542

148:                                              ; preds = %122
  store i32 0, ptr %5, align 4, !tbaa !16
  br label %149

149:                                              ; preds = %170, %148
  %150 = load i32, ptr %5, align 4, !tbaa !16
  %151 = load ptr, ptr %3, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.transfers, ptr %151, i32 0, i32 8
  %153 = load i32, ptr %152, align 4, !tbaa !9
  %154 = icmp slt i32 %150, %153
  br i1 %154, label %155, label %173

155:                                              ; preds = %149
  %156 = load ptr, ptr %4, align 8, !tbaa !5
  %157 = load ptr, ptr %3, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.transfers, ptr %157, i32 0, i32 9
  %159 = load ptr, ptr %158, align 8, !tbaa !19
  %160 = load i32, ptr %5, align 4, !tbaa !16
  %161 = sext i32 %160 to i64
  %162 = getelementptr inbounds double, ptr %159, i64 %161
  %163 = load ptr, ptr %3, align 8, !tbaa !5
  %164 = getelementptr inbounds %struct.transfers, ptr %163, i32 0, i32 10
  %165 = load ptr, ptr %164, align 8, !tbaa !20
  %166 = load i32, ptr %5, align 4, !tbaa !16
  %167 = sext i32 %166 to i64
  %168 = getelementptr inbounds double, ptr %165, i64 %167
  %169 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %156, ptr noundef @.str.124, ptr noundef %162, ptr noundef %168)
  store i32 %169, ptr %6, align 4, !tbaa !16
  br label %170

170:                                              ; preds = %155
  %171 = load i32, ptr %5, align 4, !tbaa !16
  %172 = add nsw i32 %171, 1
  store i32 %172, ptr %5, align 4, !tbaa !16
  br label %149, !llvm.loop !22

173:                                              ; preds = %149
  %174 = load ptr, ptr %4, align 8, !tbaa !5
  %175 = call i32 @fclose(ptr noundef %174)
  %176 = load ptr, ptr %3, align 8, !tbaa !5
  %177 = getelementptr inbounds %struct.transfers, ptr %176, i32 0, i32 9
  %178 = load ptr, ptr %177, align 8, !tbaa !19
  %179 = load ptr, ptr %3, align 8, !tbaa !5
  %180 = getelementptr inbounds %struct.transfers, ptr %179, i32 0, i32 8
  %181 = load i32, ptr %180, align 4, !tbaa !9
  %182 = load ptr, ptr %3, align 8, !tbaa !5
  %183 = getelementptr inbounds %struct.transfers, ptr %182, i32 0, i32 10
  %184 = load ptr, ptr %183, align 8, !tbaa !20
  %185 = load ptr, ptr %3, align 8, !tbaa !5
  %186 = getelementptr inbounds %struct.transfers, ptr %185, i32 0, i32 11
  %187 = load ptr, ptr %186, align 8, !tbaa !21
  %188 = load ptr, ptr %3, align 8, !tbaa !5
  %189 = getelementptr inbounds %struct.transfers, ptr %188, i32 0, i32 52
  %190 = getelementptr inbounds [2048 x i8], ptr %189, i64 0, i64 0
  %191 = call i32 @array_spline_table_lines(ptr noundef %178, i32 noundef %181, ptr noundef %184, i32 noundef 1, ptr noundef %187, i16 noundef signext 1, ptr noundef %190)
  %192 = icmp eq i32 %191, 1
  br i1 %192, label %193, label %202

193:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 2048, ptr %18) #5
  %194 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  %195 = load ptr, ptr %3, align 8, !tbaa !5
  %196 = getelementptr inbounds %struct.transfers, ptr %195, i32 0, i32 52
  %197 = getelementptr inbounds [2048 x i8], ptr %196, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %194, ptr noundef @.str, ptr noundef @.str.128, ptr noundef %197)
  %198 = load ptr, ptr %3, align 8, !tbaa !5
  %199 = getelementptr inbounds %struct.transfers, ptr %198, i32 0, i32 52
  %200 = getelementptr inbounds [2048 x i8], ptr %199, i64 0, i64 0
  %201 = getelementptr inbounds [2048 x i8], ptr %18, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %200, ptr noundef @.str.2, ptr noundef @__func__.transfer_global_selection_read, i32 noundef 4197, ptr noundef %201)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %18) #5
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %542

202:                                              ; preds = %173
  br label %203

203:                                              ; preds = %202, %1
  %204 = load ptr, ptr %3, align 8, !tbaa !5
  %205 = getelementptr inbounds %struct.transfers, ptr %204, i32 0, i32 15
  store i32 0, ptr %205, align 4, !tbaa !23
  %206 = load ptr, ptr %3, align 8, !tbaa !5
  %207 = getelementptr inbounds %struct.transfers, ptr %206, i32 0, i32 12
  %208 = load i16, ptr %207, align 8, !tbaa !24
  %209 = sext i16 %208 to i32
  %210 = icmp eq i32 %209, 1
  br i1 %210, label %211, label %541

211:                                              ; preds = %203
  %212 = load ptr, ptr %3, align 8, !tbaa !5
  %213 = getelementptr inbounds %struct.transfers, ptr %212, i32 0, i32 14
  %214 = getelementptr inbounds [256 x i8], ptr %213, i64 0, i64 0
  %215 = call noalias ptr @fopen(ptr noundef %214, ptr noundef @.str.121)
  store ptr %215, ptr %4, align 8, !tbaa !5
  %216 = load ptr, ptr %4, align 8, !tbaa !5
  %217 = icmp eq ptr %216, null
  br i1 %217, label %218, label %229

218:                                              ; preds = %211
  call void @llvm.lifetime.start.p0(i64 2048, ptr %19) #5
  %219 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  %220 = load ptr, ptr %3, align 8, !tbaa !5
  %221 = getelementptr inbounds %struct.transfers, ptr %220, i32 0, i32 14
  %222 = getelementptr inbounds [256 x i8], ptr %221, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %219, ptr noundef @.str.122, ptr noundef %222)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %20) #5
  %223 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  %224 = getelementptr inbounds [2048 x i8], ptr %19, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %223, ptr noundef @.str.42, ptr noundef @.str.123, ptr noundef %224)
  %225 = load ptr, ptr %3, align 8, !tbaa !5
  %226 = getelementptr inbounds %struct.transfers, ptr %225, i32 0, i32 52
  %227 = getelementptr inbounds [2048 x i8], ptr %226, i64 0, i64 0
  %228 = getelementptr inbounds [2048 x i8], ptr %20, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %227, ptr noundef @.str.2, ptr noundef @__func__.transfer_global_selection_read, i32 noundef 4207, ptr noundef %228)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 2048, ptr %19) #5
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %542

229:                                              ; preds = %211
  store i32 0, ptr %5, align 4, !tbaa !16
  store i32 2, ptr %6, align 4, !tbaa !16
  br label %230

230:                                              ; preds = %236, %229
  %231 = load i32, ptr %6, align 4, !tbaa !16
  %232 = icmp eq i32 %231, 2
  br i1 %232, label %233, label %239

233:                                              ; preds = %230
  %234 = load ptr, ptr %4, align 8, !tbaa !5
  %235 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %234, ptr noundef @.str.124, ptr noundef %7, ptr noundef %8)
  store i32 %235, ptr %6, align 4, !tbaa !16
  br label %236

236:                                              ; preds = %233
  %237 = load i32, ptr %5, align 4, !tbaa !16
  %238 = add nsw i32 %237, 1
  store i32 %238, ptr %5, align 4, !tbaa !16
  br label %230, !llvm.loop !25

239:                                              ; preds = %230
  %240 = load ptr, ptr %4, align 8, !tbaa !5
  call void @rewind(ptr noundef %240)
  %241 = load i32, ptr %5, align 4, !tbaa !16
  %242 = sub nsw i32 %241, 1
  %243 = load ptr, ptr %3, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.transfers, ptr %243, i32 0, i32 15
  store i32 %242, ptr %244, align 4, !tbaa !23
  %245 = load ptr, ptr %3, align 8, !tbaa !5
  %246 = getelementptr inbounds %struct.transfers, ptr %245, i32 0, i32 15
  %247 = load i32, ptr %246, align 4, !tbaa !23
  %248 = sext i32 %247 to i64
  %249 = mul i64 8, %248
  %250 = call noalias ptr @malloc(i64 noundef %249) #6
  %251 = load ptr, ptr %3, align 8, !tbaa !5
  %252 = getelementptr inbounds %struct.transfers, ptr %251, i32 0, i32 16
  store ptr %250, ptr %252, align 8, !tbaa !26
  %253 = load ptr, ptr %3, align 8, !tbaa !5
  %254 = getelementptr inbounds %struct.transfers, ptr %253, i32 0, i32 16
  %255 = load ptr, ptr %254, align 8, !tbaa !26
  %256 = icmp eq ptr %255, null
  br i1 %256, label %257, label %270

257:                                              ; preds = %239
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  %258 = load ptr, ptr %3, align 8, !tbaa !5
  %259 = getelementptr inbounds %struct.transfers, ptr %258, i32 0, i32 15
  %260 = load i32, ptr %259, align 4, !tbaa !23
  %261 = sext i32 %260 to i64
  %262 = mul i64 8, %261
  %263 = trunc i64 %262 to i32
  store i32 %263, ptr %21, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 2048, ptr %22) #5
  %264 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  %265 = load i32, ptr %21, align 4, !tbaa !16
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %264, ptr noundef @.str.6, ptr noundef @.str.129, i32 noundef %265)
  %266 = load ptr, ptr %3, align 8, !tbaa !5
  %267 = getelementptr inbounds %struct.transfers, ptr %266, i32 0, i32 52
  %268 = getelementptr inbounds [2048 x i8], ptr %267, i64 0, i64 0
  %269 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %268, ptr noundef @.str.2, ptr noundef @__func__.transfer_global_selection_read, i32 noundef 4217, ptr noundef %269)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %22) #5
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  br label %542

270:                                              ; preds = %239
  %271 = load ptr, ptr %3, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.transfers, ptr %271, i32 0, i32 15
  %273 = load i32, ptr %272, align 4, !tbaa !23
  %274 = sext i32 %273 to i64
  %275 = mul i64 8, %274
  %276 = call noalias ptr @malloc(i64 noundef %275) #6
  %277 = load ptr, ptr %3, align 8, !tbaa !5
  %278 = getelementptr inbounds %struct.transfers, ptr %277, i32 0, i32 17
  store ptr %276, ptr %278, align 8, !tbaa !27
  %279 = load ptr, ptr %3, align 8, !tbaa !5
  %280 = getelementptr inbounds %struct.transfers, ptr %279, i32 0, i32 17
  %281 = load ptr, ptr %280, align 8, !tbaa !27
  %282 = icmp eq ptr %281, null
  br i1 %282, label %283, label %296

283:                                              ; preds = %270
  call void @llvm.lifetime.start.p0(i64 4, ptr %23) #5
  %284 = load ptr, ptr %3, align 8, !tbaa !5
  %285 = getelementptr inbounds %struct.transfers, ptr %284, i32 0, i32 15
  %286 = load i32, ptr %285, align 4, !tbaa !23
  %287 = sext i32 %286 to i64
  %288 = mul i64 8, %287
  %289 = trunc i64 %288 to i32
  store i32 %289, ptr %23, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #5
  %290 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %291 = load i32, ptr %23, align 4, !tbaa !16
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %290, ptr noundef @.str.6, ptr noundef @.str.130, i32 noundef %291)
  %292 = load ptr, ptr %3, align 8, !tbaa !5
  %293 = getelementptr inbounds %struct.transfers, ptr %292, i32 0, i32 52
  %294 = getelementptr inbounds [2048 x i8], ptr %293, i64 0, i64 0
  %295 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %294, ptr noundef @.str.2, ptr noundef @__func__.transfer_global_selection_read, i32 noundef 4218, ptr noundef %295)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #5
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %23) #5
  br label %542

296:                                              ; preds = %270
  %297 = load ptr, ptr %3, align 8, !tbaa !5
  %298 = getelementptr inbounds %struct.transfers, ptr %297, i32 0, i32 15
  %299 = load i32, ptr %298, align 4, !tbaa !23
  %300 = sext i32 %299 to i64
  %301 = mul i64 8, %300
  %302 = call noalias ptr @malloc(i64 noundef %301) #6
  %303 = load ptr, ptr %3, align 8, !tbaa !5
  %304 = getelementptr inbounds %struct.transfers, ptr %303, i32 0, i32 18
  store ptr %302, ptr %304, align 8, !tbaa !28
  %305 = load ptr, ptr %3, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.transfers, ptr %305, i32 0, i32 18
  %307 = load ptr, ptr %306, align 8, !tbaa !28
  %308 = icmp eq ptr %307, null
  br i1 %308, label %309, label %322

309:                                              ; preds = %296
  call void @llvm.lifetime.start.p0(i64 4, ptr %25) #5
  %310 = load ptr, ptr %3, align 8, !tbaa !5
  %311 = getelementptr inbounds %struct.transfers, ptr %310, i32 0, i32 15
  %312 = load i32, ptr %311, align 4, !tbaa !23
  %313 = sext i32 %312 to i64
  %314 = mul i64 8, %313
  %315 = trunc i64 %314 to i32
  store i32 %315, ptr %25, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #5
  %316 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  %317 = load i32, ptr %25, align 4, !tbaa !16
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %316, ptr noundef @.str.6, ptr noundef @.str.131, i32 noundef %317)
  %318 = load ptr, ptr %3, align 8, !tbaa !5
  %319 = getelementptr inbounds %struct.transfers, ptr %318, i32 0, i32 52
  %320 = getelementptr inbounds [2048 x i8], ptr %319, i64 0, i64 0
  %321 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %320, ptr noundef @.str.2, ptr noundef @__func__.transfer_global_selection_read, i32 noundef 4219, ptr noundef %321)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #5
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %25) #5
  br label %542

322:                                              ; preds = %296
  %323 = load ptr, ptr %3, align 8, !tbaa !5
  %324 = getelementptr inbounds %struct.transfers, ptr %323, i32 0, i32 15
  %325 = load i32, ptr %324, align 4, !tbaa !23
  %326 = sext i32 %325 to i64
  %327 = mul i64 8, %326
  %328 = call noalias ptr @malloc(i64 noundef %327) #6
  %329 = load ptr, ptr %3, align 8, !tbaa !5
  %330 = getelementptr inbounds %struct.transfers, ptr %329, i32 0, i32 19
  store ptr %328, ptr %330, align 8, !tbaa !29
  %331 = load ptr, ptr %3, align 8, !tbaa !5
  %332 = getelementptr inbounds %struct.transfers, ptr %331, i32 0, i32 19
  %333 = load ptr, ptr %332, align 8, !tbaa !29
  %334 = icmp eq ptr %333, null
  br i1 %334, label %335, label %348

335:                                              ; preds = %322
  call void @llvm.lifetime.start.p0(i64 4, ptr %27) #5
  %336 = load ptr, ptr %3, align 8, !tbaa !5
  %337 = getelementptr inbounds %struct.transfers, ptr %336, i32 0, i32 15
  %338 = load i32, ptr %337, align 4, !tbaa !23
  %339 = sext i32 %338 to i64
  %340 = mul i64 8, %339
  %341 = trunc i64 %340 to i32
  store i32 %341, ptr %27, align 4, !tbaa !16
  call void @llvm.lifetime.start.p0(i64 2048, ptr %28) #5
  %342 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  %343 = load i32, ptr %27, align 4, !tbaa !16
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %342, ptr noundef @.str.6, ptr noundef @.str.132, i32 noundef %343)
  %344 = load ptr, ptr %3, align 8, !tbaa !5
  %345 = getelementptr inbounds %struct.transfers, ptr %344, i32 0, i32 52
  %346 = getelementptr inbounds [2048 x i8], ptr %345, i64 0, i64 0
  %347 = getelementptr inbounds [2048 x i8], ptr %28, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %346, ptr noundef @.str.2, ptr noundef @__func__.transfer_global_selection_read, i32 noundef 4220, ptr noundef %347)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %28) #5
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %27) #5
  br label %542

348:                                              ; preds = %322
  store i32 0, ptr %5, align 4, !tbaa !16
  br label %349

349:                                              ; preds = %370, %348
  %350 = load i32, ptr %5, align 4, !tbaa !16
  %351 = load ptr, ptr %3, align 8, !tbaa !5
  %352 = getelementptr inbounds %struct.transfers, ptr %351, i32 0, i32 15
  %353 = load i32, ptr %352, align 4, !tbaa !23
  %354 = icmp slt i32 %350, %353
  br i1 %354, label %355, label %373

355:                                              ; preds = %349
  %356 = load ptr, ptr %4, align 8, !tbaa !5
  %357 = load ptr, ptr %3, align 8, !tbaa !5
  %358 = getelementptr inbounds %struct.transfers, ptr %357, i32 0, i32 16
  %359 = load ptr, ptr %358, align 8, !tbaa !26
  %360 = load i32, ptr %5, align 4, !tbaa !16
  %361 = sext i32 %360 to i64
  %362 = getelementptr inbounds double, ptr %359, i64 %361
  %363 = load ptr, ptr %3, align 8, !tbaa !5
  %364 = getelementptr inbounds %struct.transfers, ptr %363, i32 0, i32 17
  %365 = load ptr, ptr %364, align 8, !tbaa !27
  %366 = load i32, ptr %5, align 4, !tbaa !16
  %367 = sext i32 %366 to i64
  %368 = getelementptr inbounds double, ptr %365, i64 %367
  %369 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %356, ptr noundef @.str.124, ptr noundef %362, ptr noundef %368)
  store i32 %369, ptr %6, align 4, !tbaa !16
  br label %370

370:                                              ; preds = %355
  %371 = load i32, ptr %5, align 4, !tbaa !16
  %372 = add nsw i32 %371, 1
  store i32 %372, ptr %5, align 4, !tbaa !16
  br label %349, !llvm.loop !30

373:                                              ; preds = %349
  %374 = load ptr, ptr %4, align 8, !tbaa !5
  %375 = call i32 @fclose(ptr noundef %374)
  %376 = load ptr, ptr %3, align 8, !tbaa !5
  %377 = getelementptr inbounds %struct.transfers, ptr %376, i32 0, i32 17
  %378 = load ptr, ptr %377, align 8, !tbaa !27
  %379 = getelementptr inbounds double, ptr %378, i64 1
  %380 = load double, ptr %379, align 8, !tbaa !31
  %381 = call double @log(double noundef %380) #5
  %382 = load ptr, ptr %3, align 8, !tbaa !5
  %383 = getelementptr inbounds %struct.transfers, ptr %382, i32 0, i32 17
  %384 = load ptr, ptr %383, align 8, !tbaa !27
  %385 = getelementptr inbounds double, ptr %384, i64 0
  %386 = load double, ptr %385, align 8, !tbaa !31
  %387 = call double @log(double noundef %386) #5
  %388 = fsub double %381, %387
  %389 = load ptr, ptr %3, align 8, !tbaa !5
  %390 = getelementptr inbounds %struct.transfers, ptr %389, i32 0, i32 16
  %391 = load ptr, ptr %390, align 8, !tbaa !26
  %392 = getelementptr inbounds double, ptr %391, i64 1
  %393 = load double, ptr %392, align 8, !tbaa !31
  %394 = load ptr, ptr %3, align 8, !tbaa !5
  %395 = getelementptr inbounds %struct.transfers, ptr %394, i32 0, i32 16
  %396 = load ptr, ptr %395, align 8, !tbaa !26
  %397 = getelementptr inbounds double, ptr %396, i64 0
  %398 = load double, ptr %397, align 8, !tbaa !31
  %399 = fsub double %393, %398
  %400 = fdiv double %388, %399
  %401 = load ptr, ptr %3, align 8, !tbaa !5
  %402 = getelementptr inbounds %struct.transfers, ptr %401, i32 0, i32 18
  %403 = load ptr, ptr %402, align 8, !tbaa !28
  %404 = getelementptr inbounds double, ptr %403, i64 0
  store double %400, ptr %404, align 8, !tbaa !31
  store i32 1, ptr %5, align 4, !tbaa !16
  br label %405

405:                                              ; preds = %456, %373
  %406 = load i32, ptr %5, align 4, !tbaa !16
  %407 = load ptr, ptr %3, align 8, !tbaa !5
  %408 = getelementptr inbounds %struct.transfers, ptr %407, i32 0, i32 15
  %409 = load i32, ptr %408, align 4, !tbaa !23
  %410 = sub nsw i32 %409, 1
  %411 = icmp slt i32 %406, %410
  br i1 %411, label %412, label %459

412:                                              ; preds = %405
  %413 = load ptr, ptr %3, align 8, !tbaa !5
  %414 = getelementptr inbounds %struct.transfers, ptr %413, i32 0, i32 17
  %415 = load ptr, ptr %414, align 8, !tbaa !27
  %416 = load i32, ptr %5, align 4, !tbaa !16
  %417 = add nsw i32 %416, 1
  %418 = sext i32 %417 to i64
  %419 = getelementptr inbounds double, ptr %415, i64 %418
  %420 = load double, ptr %419, align 8, !tbaa !31
  %421 = call double @log(double noundef %420) #5
  %422 = load ptr, ptr %3, align 8, !tbaa !5
  %423 = getelementptr inbounds %struct.transfers, ptr %422, i32 0, i32 17
  %424 = load ptr, ptr %423, align 8, !tbaa !27
  %425 = load i32, ptr %5, align 4, !tbaa !16
  %426 = sub nsw i32 %425, 1
  %427 = sext i32 %426 to i64
  %428 = getelementptr inbounds double, ptr %424, i64 %427
  %429 = load double, ptr %428, align 8, !tbaa !31
  %430 = call double @log(double noundef %429) #5
  %431 = fsub double %421, %430
  %432 = load ptr, ptr %3, align 8, !tbaa !5
  %433 = getelementptr inbounds %struct.transfers, ptr %432, i32 0, i32 16
  %434 = load ptr, ptr %433, align 8, !tbaa !26
  %435 = load i32, ptr %5, align 4, !tbaa !16
  %436 = add nsw i32 %435, 1
  %437 = sext i32 %436 to i64
  %438 = getelementptr inbounds double, ptr %434, i64 %437
  %439 = load double, ptr %438, align 8, !tbaa !31
  %440 = load ptr, ptr %3, align 8, !tbaa !5
  %441 = getelementptr inbounds %struct.transfers, ptr %440, i32 0, i32 16
  %442 = load ptr, ptr %441, align 8, !tbaa !26
  %443 = load i32, ptr %5, align 4, !tbaa !16
  %444 = sub nsw i32 %443, 1
  %445 = sext i32 %444 to i64
  %446 = getelementptr inbounds double, ptr %442, i64 %445
  %447 = load double, ptr %446, align 8, !tbaa !31
  %448 = fsub double %439, %447
  %449 = fdiv double %431, %448
  %450 = load ptr, ptr %3, align 8, !tbaa !5
  %451 = getelementptr inbounds %struct.transfers, ptr %450, i32 0, i32 18
  %452 = load ptr, ptr %451, align 8, !tbaa !28
  %453 = load i32, ptr %5, align 4, !tbaa !16
  %454 = sext i32 %453 to i64
  %455 = getelementptr inbounds double, ptr %452, i64 %454
  store double %449, ptr %455, align 8, !tbaa !31
  br label %456

456:                                              ; preds = %412
  %457 = load i32, ptr %5, align 4, !tbaa !16
  %458 = add nsw i32 %457, 1
  store i32 %458, ptr %5, align 4, !tbaa !16
  br label %405, !llvm.loop !32

459:                                              ; preds = %405
  %460 = load ptr, ptr %3, align 8, !tbaa !5
  %461 = getelementptr inbounds %struct.transfers, ptr %460, i32 0, i32 17
  %462 = load ptr, ptr %461, align 8, !tbaa !27
  %463 = load ptr, ptr %3, align 8, !tbaa !5
  %464 = getelementptr inbounds %struct.transfers, ptr %463, i32 0, i32 15
  %465 = load i32, ptr %464, align 4, !tbaa !23
  %466 = sub nsw i32 %465, 1
  %467 = sext i32 %466 to i64
  %468 = getelementptr inbounds double, ptr %462, i64 %467
  %469 = load double, ptr %468, align 8, !tbaa !31
  %470 = call double @log(double noundef %469) #5
  %471 = load ptr, ptr %3, align 8, !tbaa !5
  %472 = getelementptr inbounds %struct.transfers, ptr %471, i32 0, i32 17
  %473 = load ptr, ptr %472, align 8, !tbaa !27
  %474 = load ptr, ptr %3, align 8, !tbaa !5
  %475 = getelementptr inbounds %struct.transfers, ptr %474, i32 0, i32 15
  %476 = load i32, ptr %475, align 4, !tbaa !23
  %477 = sub nsw i32 %476, 2
  %478 = sext i32 %477 to i64
  %479 = getelementptr inbounds double, ptr %473, i64 %478
  %480 = load double, ptr %479, align 8, !tbaa !31
  %481 = call double @log(double noundef %480) #5
  %482 = fsub double %470, %481
  %483 = load ptr, ptr %3, align 8, !tbaa !5
  %484 = getelementptr inbounds %struct.transfers, ptr %483, i32 0, i32 16
  %485 = load ptr, ptr %484, align 8, !tbaa !26
  %486 = load ptr, ptr %3, align 8, !tbaa !5
  %487 = getelementptr inbounds %struct.transfers, ptr %486, i32 0, i32 15
  %488 = load i32, ptr %487, align 4, !tbaa !23
  %489 = sub nsw i32 %488, 1
  %490 = sext i32 %489 to i64
  %491 = getelementptr inbounds double, ptr %485, i64 %490
  %492 = load double, ptr %491, align 8, !tbaa !31
  %493 = load ptr, ptr %3, align 8, !tbaa !5
  %494 = getelementptr inbounds %struct.transfers, ptr %493, i32 0, i32 16
  %495 = load ptr, ptr %494, align 8, !tbaa !26
  %496 = load ptr, ptr %3, align 8, !tbaa !5
  %497 = getelementptr inbounds %struct.transfers, ptr %496, i32 0, i32 15
  %498 = load i32, ptr %497, align 4, !tbaa !23
  %499 = sub nsw i32 %498, 2
  %500 = sext i32 %499 to i64
  %501 = getelementptr inbounds double, ptr %495, i64 %500
  %502 = load double, ptr %501, align 8, !tbaa !31
  %503 = fsub double %492, %502
  %504 = fdiv double %482, %503
  %505 = load ptr, ptr %3, align 8, !tbaa !5
  %506 = getelementptr inbounds %struct.transfers, ptr %505, i32 0, i32 18
  %507 = load ptr, ptr %506, align 8, !tbaa !28
  %508 = load ptr, ptr %3, align 8, !tbaa !5
  %509 = getelementptr inbounds %struct.transfers, ptr %508, i32 0, i32 15
  %510 = load i32, ptr %509, align 4, !tbaa !23
  %511 = sub nsw i32 %510, 1
  %512 = sext i32 %511 to i64
  %513 = getelementptr inbounds double, ptr %507, i64 %512
  store double %504, ptr %513, align 8, !tbaa !31
  %514 = load ptr, ptr %3, align 8, !tbaa !5
  %515 = getelementptr inbounds %struct.transfers, ptr %514, i32 0, i32 16
  %516 = load ptr, ptr %515, align 8, !tbaa !26
  %517 = load ptr, ptr %3, align 8, !tbaa !5
  %518 = getelementptr inbounds %struct.transfers, ptr %517, i32 0, i32 15
  %519 = load i32, ptr %518, align 4, !tbaa !23
  %520 = load ptr, ptr %3, align 8, !tbaa !5
  %521 = getelementptr inbounds %struct.transfers, ptr %520, i32 0, i32 18
  %522 = load ptr, ptr %521, align 8, !tbaa !28
  %523 = load ptr, ptr %3, align 8, !tbaa !5
  %524 = getelementptr inbounds %struct.transfers, ptr %523, i32 0, i32 19
  %525 = load ptr, ptr %524, align 8, !tbaa !29
  %526 = load ptr, ptr %3, align 8, !tbaa !5
  %527 = getelementptr inbounds %struct.transfers, ptr %526, i32 0, i32 52
  %528 = getelementptr inbounds [2048 x i8], ptr %527, i64 0, i64 0
  %529 = call i32 @array_spline_table_lines(ptr noundef %516, i32 noundef %519, ptr noundef %522, i32 noundef 1, ptr noundef %525, i16 noundef signext 1, ptr noundef %528)
  %530 = icmp eq i32 %529, 1
  br i1 %530, label %531, label %540

531:                                              ; preds = %459
  call void @llvm.lifetime.start.p0(i64 2048, ptr %29) #5
  %532 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  %533 = load ptr, ptr %3, align 8, !tbaa !5
  %534 = getelementptr inbounds %struct.transfers, ptr %533, i32 0, i32 52
  %535 = getelementptr inbounds [2048 x i8], ptr %534, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %532, ptr noundef @.str, ptr noundef @.str.133, ptr noundef %535)
  %536 = load ptr, ptr %3, align 8, !tbaa !5
  %537 = getelementptr inbounds %struct.transfers, ptr %536, i32 0, i32 52
  %538 = getelementptr inbounds [2048 x i8], ptr %537, i64 0, i64 0
  %539 = getelementptr inbounds [2048 x i8], ptr %29, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %538, ptr noundef @.str.2, ptr noundef @__func__.transfer_global_selection_read, i32 noundef 4256, ptr noundef %539)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %29) #5
  store i32 1, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %542

540:                                              ; preds = %459
  br label %541

541:                                              ; preds = %540, %203
  store i32 0, ptr %2, align 4
  store i32 1, ptr %11, align 4
  br label %542

542:                                              ; preds = %541, %531, %335, %309, %283, %257, %218, %193, %135, %109, %83, %44
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %4) #5
  %543 = load i32, ptr %2, align 4
  ret i32 %543
}

; Function Attrs: nounwind
declare double @log(double noundef) #4

declare noalias ptr @fopen(ptr noundef, ptr noundef) #1

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) #1

declare void @rewind(ptr noundef) #1

declare i32 @fclose(ptr noundef) #1

declare i32 @array_spline_table_lines(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i16 noundef signext, ptr noundef) #1

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 allocsize(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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nounwind }
attributes #6 = { nounwind allocsize(0) }

!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, !13, i64 1884}
!10 = !{!"transfers", !11, i64 0, !11, i64 8, !11, i64 16, !7, i64 24, !7, i64 824, !12, i64 1624, !12, i64 1626, !7, i64 1628, !13, i64 1884, !6, i64 1888, !6, i64 1896, !6, i64 1904, !12, i64 1912, !12, i64 1914, !7, i64 1916, !13, i64 2172, !6, i64 2176, !6, i64 2184, !6, i64 2192, !6, i64 2200, !12, i64 2208, !13, i64 2212, !13, i64 2216, !13, i64 2220, !13, i64 2224, !13, i64 2228, !13, i64 2232, !13, i64 2236, !13, i64 2240, !13, i64 2244, !13, i64 2248, !13, i64 2252, !13, i64 2256, !13, i64 2260, !13, i64 2264, !13, i64 2268, !13, i64 2272, !13, i64 2276, !13, i64 2280, !6, i64 2288, !6, i64 2296, !6, i64 2304, !13, i64 2312, !6, i64 2320, !11, i64 2328, !14, i64 2336, !6, i64 2344, !6, i64 2352, !13, i64 2360, !6, i64 2368, !12, i64 2376, !12, i64 2378, !7, i64 2380}
!11 = !{!"double", !7, i64 0}
!12 = !{!"short", !7, i64 0}
!13 = !{!"int", !7, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!10, !12, i64 1624}
!16 = !{!13, !13, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!10, !6, i64 1888}
!20 = !{!10, !6, i64 1896}
!21 = !{!10, !6, i64 1904}
!22 = distinct !{!22, !18}
!23 = !{!10, !13, i64 2172}
!24 = !{!10, !12, i64 1912}
!25 = distinct !{!25, !18}
!26 = !{!10, !6, i64 2176}
!27 = !{!10, !6, i64 2184}
!28 = !{!10, !6, i64 2192}
!29 = !{!10, !6, i64 2200}
!30 = distinct !{!30, !18}
!31 = !{!11, !11, i64 0}
!32 = distinct !{!32, !18}


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

@.str = external hidden unnamed_addr constant [18 x i8], align 1
@.str.2 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.42 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.121 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.122 = external hidden unnamed_addr constant [24 x i8], align 1
@.str.123 = external hidden unnamed_addr constant [19 x i8], align 1
@__func__.transfer_global_selection_read = external hidden unnamed_addr constant [31 x i8], align 1
@.str.124 = external hidden unnamed_addr constant [8 x i8], align 1
@.str.125 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.126 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.127 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.128 = external hidden unnamed_addr constant [102 x i8], align 1
@.str.129 = external hidden unnamed_addr constant [14 x i8], align 1
@.str.130 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.131 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.132 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.133 = external hidden unnamed_addr constant [129 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: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #2

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

21:                                               ; preds = %1
  %22 = getelementptr inbounds i8, ptr %0, i64 1628
  %23 = tail call noalias ptr @fopen(ptr noundef nonnull %22, ptr noundef nonnull @.str.121)
  %24 = icmp eq ptr %23, null
  br i1 %24, label %25, label %.preheader134

25:                                               ; preds = %21
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %4) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %4, ptr noundef nonnull @.str.122, ptr noundef nonnull %22) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %5) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %5, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.123, ptr noundef nonnull %4) #6
  %26 = getelementptr inbounds i8, ptr %0, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %26, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_global_selection_read, i32 noundef 4167, ptr noundef nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %5) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %4) #6
  br label %197

.preheader134:                                    ; preds = %21, %.preheader134
  %27 = phi i32 [ %29, %.preheader134 ], [ 0, %21 ]
  %28 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %23, ptr noundef nonnull @.str.124, ptr noundef nonnull %2, ptr noundef nonnull %3) #6
  %29 = add nuw nsw i32 %27, 1
  %30 = icmp eq i32 %28, 2
  br i1 %30, label %.preheader134, label %31, !llvm.loop !15

31:                                               ; preds = %.preheader134
  call void @rewind(ptr noundef nonnull %23)
  store i32 %27, ptr %17, align 4, !tbaa !5
  %32 = zext nneg i32 %27 to i64
  %33 = shl nuw nsw i64 %32, 3
  %34 = call noalias ptr @malloc(i64 noundef %33) #7
  %35 = getelementptr inbounds i8, ptr %0, i64 1888
  store ptr %34, ptr %35, align 8, !tbaa !17
  %36 = icmp eq ptr %34, null
  br i1 %36, label %37, label %40

37:                                               ; preds = %31
  %38 = shl i32 %27, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %6) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %6, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.125, i32 noundef %38) #6
  %39 = getelementptr inbounds i8, ptr %0, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %39, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_global_selection_read, i32 noundef 4177, ptr noundef nonnull %6) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %6) #6
  br label %197

40:                                               ; preds = %31
  %41 = call noalias ptr @malloc(i64 noundef %33) #7
  %42 = getelementptr inbounds i8, ptr %0, i64 1896
  store ptr %41, ptr %42, align 8, !tbaa !18
  %43 = icmp eq ptr %41, null
  br i1 %43, label %44, label %47

44:                                               ; preds = %40
  %45 = shl i32 %27, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %7) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %7, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.126, i32 noundef %45) #6
  %46 = getelementptr inbounds i8, ptr %0, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %46, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_global_selection_read, i32 noundef 4178, ptr noundef nonnull %7) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %7) #6
  br label %197

47:                                               ; preds = %40
  %48 = call noalias ptr @malloc(i64 noundef %33) #7
  %49 = getelementptr inbounds i8, ptr %0, i64 1904
  store ptr %48, ptr %49, align 8, !tbaa !19
  %50 = icmp eq ptr %48, null
  br i1 %50, label %51, label %.preheader133

.preheader133:                                    ; preds = %47
  %.not = icmp eq i32 %27, 0
  br i1 %.not, label %._crit_edge, label %.lr.ph

51:                                               ; preds = %47
  %52 = shl i32 %27, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.127, i32 noundef %52) #6
  %53 = getelementptr inbounds i8, ptr %0, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %53, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_global_selection_read, i32 noundef 4179, ptr noundef nonnull %8) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #6
  br label %197

.lr.ph:                                           ; preds = %.preheader133, %.lr.ph
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph ], [ 0, %.preheader133 ]
  %54 = load ptr, ptr %35, align 8, !tbaa !17
  %55 = getelementptr inbounds double, ptr %54, i64 %indvars.iv
  %56 = load ptr, ptr %42, align 8, !tbaa !18
  %57 = getelementptr inbounds double, ptr %56, i64 %indvars.iv
  %58 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %23, ptr noundef nonnull @.str.124, ptr noundef %55, ptr noundef %57) #6
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %59 = load i32, ptr %17, align 4, !tbaa !5
  %60 = sext i32 %59 to i64
  %61 = icmp slt i64 %indvars.iv.next, %60
  br i1 %61, label %.lr.ph, label %._crit_edge, !llvm.loop !20

._crit_edge:                                      ; preds = %.lr.ph, %.preheader133
  %62 = call i32 @fclose(ptr noundef nonnull %23)
  %63 = load ptr, ptr %35, align 8, !tbaa !17
  %64 = load i32, ptr %17, align 4, !tbaa !5
  %65 = load ptr, ptr %42, align 8, !tbaa !18
  %66 = load ptr, ptr %49, align 8, !tbaa !19
  %67 = getelementptr inbounds i8, ptr %0, i64 2380
  %68 = call i32 @array_spline_table_lines(ptr noundef %63, i32 noundef %64, ptr noundef %65, i32 noundef 1, ptr noundef %66, i16 noundef signext 1, ptr noundef nonnull %67) #6
  %69 = icmp eq i32 %68, 1
  br i1 %69, label %70, label %71

70:                                               ; preds = %._crit_edge
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str, ptr noundef nonnull @.str.128, ptr noundef nonnull %67) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %67, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_global_selection_read, i32 noundef 4197, ptr noundef nonnull %9) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #6
  br label %197

71:                                               ; preds = %._crit_edge, %1
  %72 = getelementptr inbounds i8, ptr %0, i64 2172
  store i32 0, ptr %72, align 4, !tbaa !21
  %73 = getelementptr inbounds i8, ptr %0, i64 1912
  %74 = load i16, ptr %73, align 8, !tbaa !22
  %75 = icmp eq i16 %74, 1
  br i1 %75, label %76, label %197

76:                                               ; preds = %71
  %77 = getelementptr inbounds i8, ptr %0, i64 1916
  %78 = call noalias ptr @fopen(ptr noundef nonnull %77, ptr noundef nonnull @.str.121)
  %79 = icmp eq ptr %78, null
  br i1 %79, label %80, label %.preheader132

80:                                               ; preds = %76
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.122, ptr noundef nonnull %77) #6
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.42, ptr noundef nonnull @.str.123, ptr noundef nonnull %10) #6
  %81 = getelementptr inbounds i8, ptr %0, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %81, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_global_selection_read, i32 noundef 4207, ptr noundef nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #6
  br label %197

.preheader132:                                    ; preds = %76, %.preheader132
  %82 = phi i32 [ %84, %.preheader132 ], [ 0, %76 ]
  %83 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %78, ptr noundef nonnull @.str.124, ptr noundef nonnull %2, ptr noundef nonnull %3) #6
  %84 = add nuw nsw i32 %82, 1
  %85 = icmp eq i32 %83, 2
  br i1 %85, label %.preheader132, label %86, !llvm.loop !23

86:                                               ; preds = %.preheader132
  call void @rewind(ptr noundef nonnull %78)
  store i32 %82, ptr %72, align 4, !tbaa !21
  %87 = zext nneg i32 %82 to i64
  %88 = shl nuw nsw i64 %87, 3
  %89 = call noalias ptr @malloc(i64 noundef %88) #7
  %90 = getelementptr inbounds i8, ptr %0, i64 2176
  store ptr %89, ptr %90, align 8, !tbaa !24
  %91 = icmp eq ptr %89, null
  br i1 %91, label %92, label %95

92:                                               ; preds = %86
  %93 = shl i32 %82, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.129, i32 noundef %93) #6
  %94 = getelementptr inbounds i8, ptr %0, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %94, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_global_selection_read, i32 noundef 4217, ptr noundef nonnull %12) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #6
  br label %197

95:                                               ; preds = %86
  %96 = call noalias ptr @malloc(i64 noundef %88) #7
  %97 = getelementptr inbounds i8, ptr %0, i64 2184
  store ptr %96, ptr %97, align 8, !tbaa !25
  %98 = icmp eq ptr %96, null
  br i1 %98, label %99, label %102

99:                                               ; preds = %95
  %100 = shl i32 %82, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %13) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %13, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.130, i32 noundef %100) #6
  %101 = getelementptr inbounds i8, ptr %0, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %101, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_global_selection_read, i32 noundef 4218, ptr noundef nonnull %13) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %13) #6
  br label %197

102:                                              ; preds = %95
  %103 = call noalias ptr @malloc(i64 noundef %88) #7
  %104 = getelementptr inbounds i8, ptr %0, i64 2192
  store ptr %103, ptr %104, align 8, !tbaa !26
  %105 = icmp eq ptr %103, null
  br i1 %105, label %106, label %109

106:                                              ; preds = %102
  %107 = shl i32 %82, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %14) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %14, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.131, i32 noundef %107) #6
  %108 = getelementptr inbounds i8, ptr %0, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %108, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_global_selection_read, i32 noundef 4219, ptr noundef nonnull %14) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %14) #6
  br label %197

109:                                              ; preds = %102
  %110 = call noalias ptr @malloc(i64 noundef %88) #7
  %111 = getelementptr inbounds i8, ptr %0, i64 2200
  store ptr %110, ptr %111, align 8, !tbaa !27
  %112 = icmp eq ptr %110, null
  br i1 %112, label %113, label %.preheader

.preheader:                                       ; preds = %109
  %.not153 = icmp eq i32 %82, 0
  br i1 %.not153, label %._crit_edge140, label %.lr.ph139

113:                                              ; preds = %109
  %114 = shl i32 %82, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %15) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %15, ptr noundef nonnull @.str.6, ptr noundef nonnull @.str.132, i32 noundef %114) #6
  %115 = getelementptr inbounds i8, ptr %0, i64 2380
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %115, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_global_selection_read, i32 noundef 4220, ptr noundef nonnull %15) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %15) #6
  br label %197

.lr.ph139:                                        ; preds = %.preheader, %.lr.ph139
  %indvars.iv147 = phi i64 [ %indvars.iv.next148, %.lr.ph139 ], [ 0, %.preheader ]
  %116 = load ptr, ptr %90, align 8, !tbaa !24
  %117 = getelementptr inbounds double, ptr %116, i64 %indvars.iv147
  %118 = load ptr, ptr %97, align 8, !tbaa !25
  %119 = getelementptr inbounds double, ptr %118, i64 %indvars.iv147
  %120 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef nonnull %78, ptr noundef nonnull @.str.124, ptr noundef %117, ptr noundef %119) #6
  %indvars.iv.next148 = add nuw nsw i64 %indvars.iv147, 1
  %121 = load i32, ptr %72, align 4, !tbaa !21
  %122 = sext i32 %121 to i64
  %123 = icmp slt i64 %indvars.iv.next148, %122
  br i1 %123, label %.lr.ph139, label %._crit_edge140, !llvm.loop !28

._crit_edge140:                                   ; preds = %.lr.ph139, %.preheader
  %124 = call i32 @fclose(ptr noundef nonnull %78)
  %125 = load ptr, ptr %97, align 8, !tbaa !25
  %126 = getelementptr inbounds i8, ptr %125, i64 8
  %127 = load double, ptr %126, align 8, !tbaa !29
  %128 = call double @log(double noundef %127) #6
  %129 = load ptr, ptr %97, align 8, !tbaa !25
  %130 = load double, ptr %129, align 8, !tbaa !29
  %131 = call double @log(double noundef %130) #6
  %132 = fsub double %128, %131
  %133 = load ptr, ptr %90, align 8, !tbaa !24
  %134 = getelementptr inbounds i8, ptr %133, i64 8
  %135 = load double, ptr %134, align 8, !tbaa !29
  %136 = load double, ptr %133, align 8, !tbaa !29
  %137 = fsub double %135, %136
  %138 = fdiv double %132, %137
  %139 = load ptr, ptr %104, align 8, !tbaa !26
  store double %138, ptr %139, align 8, !tbaa !29
  %140 = load i32, ptr %72, align 4, !tbaa !21
  %141 = icmp sgt i32 %140, 2
  br i1 %141, label %.lr.ph143, label %._crit_edge140.._crit_edge144_crit_edge

._crit_edge140.._crit_edge144_crit_edge:          ; preds = %._crit_edge140
  %142 = add nsw i32 %140, -1
  %.pre = sext i32 %142 to i64
  br label %._crit_edge144

.lr.ph143:                                        ; preds = %._crit_edge140, %.lr.ph143
  %indvars.iv150 = phi i64 [ %indvars.iv.next151, %.lr.ph143 ], [ 1, %._crit_edge140 ]
  %143 = load ptr, ptr %97, align 8, !tbaa !25
  %indvars.iv.next151 = add nuw nsw i64 %indvars.iv150, 1
  %144 = getelementptr inbounds double, ptr %143, i64 %indvars.iv.next151
  %145 = load double, ptr %144, align 8, !tbaa !29
  %146 = call double @log(double noundef %145) #6
  %147 = load ptr, ptr %97, align 8, !tbaa !25
  %148 = add nsw i64 %indvars.iv150, -1
  %149 = getelementptr inbounds double, ptr %147, i64 %148
  %150 = load double, ptr %149, align 8, !tbaa !29
  %151 = call double @log(double noundef %150) #6
  %152 = fsub double %146, %151
  %153 = load ptr, ptr %90, align 8, !tbaa !24
  %154 = getelementptr inbounds double, ptr %153, i64 %indvars.iv.next151
  %155 = load double, ptr %154, align 8, !tbaa !29
  %156 = getelementptr inbounds double, ptr %153, i64 %148
  %157 = load double, ptr %156, align 8, !tbaa !29
  %158 = fsub double %155, %157
  %159 = fdiv double %152, %158
  %160 = load ptr, ptr %104, align 8, !tbaa !26
  %161 = getelementptr inbounds double, ptr %160, i64 %indvars.iv150
  store double %159, ptr %161, align 8, !tbaa !29
  %162 = load i32, ptr %72, align 4, !tbaa !21
  %163 = add nsw i32 %162, -1
  %164 = sext i32 %163 to i64
  %165 = icmp slt i64 %indvars.iv.next151, %164
  br i1 %165, label %.lr.ph143, label %._crit_edge144, !llvm.loop !30

._crit_edge144:                                   ; preds = %.lr.ph143, %._crit_edge140.._crit_edge144_crit_edge
  %.pre-phi = phi i64 [ %.pre, %._crit_edge140.._crit_edge144_crit_edge ], [ %164, %.lr.ph143 ]
  %166 = load ptr, ptr %97, align 8, !tbaa !25
  %167 = getelementptr inbounds double, ptr %166, i64 %.pre-phi
  %168 = load double, ptr %167, align 8, !tbaa !29
  %169 = call double @log(double noundef %168) #6
  %170 = load ptr, ptr %97, align 8, !tbaa !25
  %171 = load i32, ptr %72, align 4, !tbaa !21
  %172 = sext i32 %171 to i64
  %173 = getelementptr double, ptr %170, i64 %172
  %174 = getelementptr i8, ptr %173, i64 -16
  %175 = load double, ptr %174, align 8, !tbaa !29
  %176 = call double @log(double noundef %175) #6
  %177 = fsub double %169, %176
  %178 = load ptr, ptr %90, align 8, !tbaa !24
  %179 = load i32, ptr %72, align 4, !tbaa !21
  %180 = add nsw i32 %179, -1
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds double, ptr %178, i64 %181
  %183 = load double, ptr %182, align 8, !tbaa !29
  %184 = sext i32 %179 to i64
  %185 = getelementptr double, ptr %178, i64 %184
  %186 = getelementptr i8, ptr %185, i64 -16
  %187 = load double, ptr %186, align 8, !tbaa !29
  %188 = fsub double %183, %187
  %189 = fdiv double %177, %188
  %190 = load ptr, ptr %104, align 8, !tbaa !26
  %191 = getelementptr inbounds double, ptr %190, i64 %181
  store double %189, ptr %191, align 8, !tbaa !29
  %192 = load ptr, ptr %111, align 8, !tbaa !27
  %193 = getelementptr inbounds i8, ptr %0, i64 2380
  %194 = call i32 @array_spline_table_lines(ptr noundef %178, i32 noundef %179, ptr noundef %190, i32 noundef 1, ptr noundef %192, i16 noundef signext 1, ptr noundef nonnull %193) #6
  %195 = icmp eq i32 %194, 1
  br i1 %195, label %196, label %197

196:                                              ; preds = %._crit_edge144
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %16) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %16, ptr noundef nonnull @.str, ptr noundef nonnull @.str.133, ptr noundef nonnull %193) #6
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %193, ptr noundef nonnull @.str.2, ptr noundef nonnull @__func__.transfer_global_selection_read, i32 noundef 4256, ptr noundef nonnull %16) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %16) #6
  br label %197

197:                                              ; preds = %71, %._crit_edge144, %196, %113, %106, %99, %92, %80, %70, %51, %44, %37, %25
  %.0 = phi i32 [ 1, %25 ], [ 1, %37 ], [ 1, %44 ], [ 1, %51 ], [ 1, %70 ], [ 1, %80 ], [ 1, %92 ], [ 1, %99 ], [ 1, %106 ], [ 1, %113 ], [ 1, %196 ], [ 0, %._crit_edge144 ], [ 0, %71 ]
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #6
  ret i32 %.0
}

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

; Function Attrs: nofree nounwind
declare noalias noundef ptr @fopen(ptr nocapture noundef readonly, ptr nocapture noundef readonly) local_unnamed_addr #5

declare i32 @__isoc99_fscanf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

; Function Attrs: nofree nounwind
declare void @rewind(ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: nofree nounwind
declare noundef i32 @fclose(ptr nocapture noundef) local_unnamed_addr #5

declare i32 @array_spline_table_lines(ptr noundef, i32 noundef, ptr noundef, i32 noundef, ptr noundef, i16 noundef signext, ptr noundef) local_unnamed_addr #1

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 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "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 uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn memory(write) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { nofree nounwind "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #6 = { nounwind }
attributes #7 = { nounwind allocsize(0) }

!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 1884}
!6 = !{!"transfers", !7, i64 0, !7, i64 8, !7, i64 16, !8, i64 24, !8, i64 824, !10, i64 1624, !10, i64 1626, !8, i64 1628, !11, i64 1884, !12, i64 1888, !12, i64 1896, !12, i64 1904, !10, i64 1912, !10, i64 1914, !8, i64 1916, !11, i64 2172, !12, i64 2176, !12, i64 2184, !12, i64 2192, !12, i64 2200, !10, i64 2208, !11, i64 2212, !11, i64 2216, !11, i64 2220, !11, i64 2224, !11, i64 2228, !11, i64 2232, !11, i64 2236, !11, i64 2240, !11, i64 2244, !11, i64 2248, !11, i64 2252, !11, i64 2256, !11, i64 2260, !11, i64 2264, !11, i64 2268, !11, i64 2272, !11, i64 2276, !11, i64 2280, !12, i64 2288, !12, i64 2296, !12, i64 2304, !11, i64 2312, !12, i64 2320, !7, i64 2328, !13, i64 2336, !12, i64 2344, !12, i64 2352, !11, i64 2360, !12, i64 2368, !10, i64 2376, !10, i64 2378, !8, i64 2380}
!7 = !{!"double", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"short", !8, i64 0}
!11 = !{!"int", !8, i64 0}
!12 = !{!"any pointer", !8, i64 0}
!13 = !{!"long", !8, i64 0}
!14 = !{!6, !10, i64 1624}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!6, !12, i64 1888}
!18 = !{!6, !12, i64 1896}
!19 = !{!6, !12, i64 1904}
!20 = distinct !{!20, !16}
!21 = !{!6, !11, i64 2172}
!22 = !{!6, !10, i64 1912}
!23 = distinct !{!23, !16}
!24 = !{!6, !12, i64 2176}
!25 = !{!6, !12, i64 2184}
!26 = !{!6, !12, i64 2192}
!27 = !{!6, !12, i64 2200}
!28 = distinct !{!28, !16}
!29 = !{!7, !7, i64 0}
!30 = distinct !{!30, !16}


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