; LLVM IR from sd12832/High-Performance-Computing-Files :: d2q9-bgk-serial (initialise)

; 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.t_param = type { i32, i32, i32, i32, double, double, double }
%struct.t_speed = type { [9 x double] }

@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [35 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

; Function Attrs: nounwind uwtable
define dso_local i32 @initialise(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3, ptr noundef %4, ptr noundef %5, ptr noundef %6) #1 {
  %8 = alloca ptr, align 8
  %9 = alloca ptr, align 8
  %10 = alloca ptr, align 8
  %11 = alloca ptr, align 8
  %12 = alloca ptr, align 8
  %13 = alloca ptr, align 8
  %14 = alloca ptr, align 8
  %15 = alloca [1024 x i8], align 16
  %16 = alloca ptr, align 8
  %17 = alloca i32, align 4
  %18 = alloca i32, align 4
  %19 = alloca i32, align 4
  %20 = alloca i32, align 4
  %21 = alloca i32, align 4
  %22 = alloca i32, align 4
  %23 = alloca double, align 8
  %24 = alloca double, align 8
  %25 = alloca double, align 8
  store ptr %0, ptr %8, align 8, !tbaa !5
  store ptr %1, ptr %9, align 8, !tbaa !5
  store ptr %2, ptr %10, align 8, !tbaa !5
  store ptr %3, ptr %11, align 8, !tbaa !5
  store ptr %4, ptr %12, align 8, !tbaa !5
  store ptr %5, ptr %13, align 8, !tbaa !5
  store ptr %6, ptr %14, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 1024, ptr %15) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.start.p0(i64 8, ptr %25) #5
  %26 = load ptr, ptr %8, align 8, !tbaa !5
  %27 = call noalias ptr @fopen(ptr noundef %26, ptr noundef @.str.5)
  store ptr %27, ptr %16, align 8, !tbaa !5
  %28 = load ptr, ptr %16, align 8, !tbaa !5
  %29 = icmp eq ptr %28, null
  br i1 %29, label %30, label %35

30:                                               ; preds = %7
  %31 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
  %32 = load ptr, ptr %8, align 8, !tbaa !5
  %33 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %31, ptr noundef @.str.6, ptr noundef %32) #5
  %34 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
  call void @die(ptr noundef %34, i32 noundef 396, ptr noundef @.str.7)
  br label %35

35:                                               ; preds = %30, %7
  %36 = load ptr, ptr %16, align 8, !tbaa !5
  %37 = load ptr, ptr %10, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.t_param, ptr %37, i32 0, i32 0
  %39 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %36, ptr noundef @.str.8, ptr noundef %38)
  store i32 %39, ptr %22, align 4, !tbaa !9
  %40 = load i32, ptr %22, align 4, !tbaa !9
  %41 = icmp ne i32 %40, 1
  br i1 %41, label %42, label %43

42:                                               ; preds = %35
  call void @die(ptr noundef @.str.9, i32 noundef 401, ptr noundef @.str.7)
  br label %43

43:                                               ; preds = %42, %35
  %44 = load ptr, ptr %16, align 8, !tbaa !5
  %45 = load ptr, ptr %10, align 8, !tbaa !5
  %46 = getelementptr inbounds %struct.t_param, ptr %45, i32 0, i32 1
  %47 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %44, ptr noundef @.str.8, ptr noundef %46)
  store i32 %47, ptr %22, align 4, !tbaa !9
  %48 = load i32, ptr %22, align 4, !tbaa !9
  %49 = icmp ne i32 %48, 1
  br i1 %49, label %50, label %51

50:                                               ; preds = %43
  call void @die(ptr noundef @.str.10, i32 noundef 403, ptr noundef @.str.7)
  br label %51

51:                                               ; preds = %50, %43
  %52 = load ptr, ptr %16, align 8, !tbaa !5
  %53 = load ptr, ptr %10, align 8, !tbaa !5
  %54 = getelementptr inbounds %struct.t_param, ptr %53, i32 0, i32 2
  %55 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %52, ptr noundef @.str.8, ptr noundef %54)
  store i32 %55, ptr %22, align 4, !tbaa !9
  %56 = load i32, ptr %22, align 4, !tbaa !9
  %57 = icmp ne i32 %56, 1
  br i1 %57, label %58, label %59

58:                                               ; preds = %51
  call void @die(ptr noundef @.str.11, i32 noundef 405, ptr noundef @.str.7)
  br label %59

59:                                               ; preds = %58, %51
  %60 = load ptr, ptr %16, align 8, !tbaa !5
  %61 = load ptr, ptr %10, align 8, !tbaa !5
  %62 = getelementptr inbounds %struct.t_param, ptr %61, i32 0, i32 3
  %63 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %60, ptr noundef @.str.8, ptr noundef %62)
  store i32 %63, ptr %22, align 4, !tbaa !9
  %64 = load i32, ptr %22, align 4, !tbaa !9
  %65 = icmp ne i32 %64, 1
  br i1 %65, label %66, label %67

66:                                               ; preds = %59
  call void @die(ptr noundef @.str.12, i32 noundef 407, ptr noundef @.str.7)
  br label %67

67:                                               ; preds = %66, %59
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  %69 = load ptr, ptr %10, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.t_param, ptr %69, i32 0, i32 4
  %71 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %68, ptr noundef @.str.13, ptr noundef %70)
  store i32 %71, ptr %22, align 4, !tbaa !9
  %72 = load i32, ptr %22, align 4, !tbaa !9
  %73 = icmp ne i32 %72, 1
  br i1 %73, label %74, label %75

74:                                               ; preds = %67
  call void @die(ptr noundef @.str.14, i32 noundef 409, ptr noundef @.str.7)
  br label %75

75:                                               ; preds = %74, %67
  %76 = load ptr, ptr %16, align 8, !tbaa !5
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  %78 = getelementptr inbounds %struct.t_param, ptr %77, i32 0, i32 5
  %79 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %76, ptr noundef @.str.13, ptr noundef %78)
  store i32 %79, ptr %22, align 4, !tbaa !9
  %80 = load i32, ptr %22, align 4, !tbaa !9
  %81 = icmp ne i32 %80, 1
  br i1 %81, label %82, label %83

82:                                               ; preds = %75
  call void @die(ptr noundef @.str.15, i32 noundef 411, ptr noundef @.str.7)
  br label %83

83:                                               ; preds = %82, %75
  %84 = load ptr, ptr %16, align 8, !tbaa !5
  %85 = load ptr, ptr %10, align 8, !tbaa !5
  %86 = getelementptr inbounds %struct.t_param, ptr %85, i32 0, i32 6
  %87 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %84, ptr noundef @.str.13, ptr noundef %86)
  store i32 %87, ptr %22, align 4, !tbaa !9
  %88 = load i32, ptr %22, align 4, !tbaa !9
  %89 = icmp ne i32 %88, 1
  br i1 %89, label %90, label %91

90:                                               ; preds = %83
  call void @die(ptr noundef @.str.16, i32 noundef 413, ptr noundef @.str.7)
  br label %91

91:                                               ; preds = %90, %83
  %92 = load ptr, ptr %16, align 8, !tbaa !5
  %93 = call i32 @fclose(ptr noundef %92)
  %94 = load ptr, ptr %10, align 8, !tbaa !5
  %95 = getelementptr inbounds %struct.t_param, ptr %94, i32 0, i32 1
  %96 = load i32, ptr %95, align 4, !tbaa !11
  %97 = load ptr, ptr %10, align 8, !tbaa !5
  %98 = getelementptr inbounds %struct.t_param, ptr %97, i32 0, i32 0
  %99 = load i32, ptr %98, align 8, !tbaa !14
  %100 = mul nsw i32 %96, %99
  %101 = sext i32 %100 to i64
  %102 = mul i64 72, %101
  %103 = call noalias ptr @malloc(i64 noundef %102) #6
  %104 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %103, ptr %104, align 8, !tbaa !5
  %105 = load ptr, ptr %11, align 8, !tbaa !5
  %106 = load ptr, ptr %105, align 8, !tbaa !5
  %107 = icmp eq ptr %106, null
  br i1 %107, label %108, label %109

108:                                              ; preds = %91
  call void @die(ptr noundef @.str.17, i32 noundef 440, ptr noundef @.str.7)
  br label %109

109:                                              ; preds = %108, %91
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = getelementptr inbounds %struct.t_param, ptr %110, i32 0, i32 1
  %112 = load i32, ptr %111, align 4, !tbaa !11
  %113 = load ptr, ptr %10, align 8, !tbaa !5
  %114 = getelementptr inbounds %struct.t_param, ptr %113, i32 0, i32 0
  %115 = load i32, ptr %114, align 8, !tbaa !14
  %116 = mul nsw i32 %112, %115
  %117 = sext i32 %116 to i64
  %118 = mul i64 72, %117
  %119 = call noalias ptr @malloc(i64 noundef %118) #6
  %120 = load ptr, ptr %12, align 8, !tbaa !5
  store ptr %119, ptr %120, align 8, !tbaa !5
  %121 = load ptr, ptr %12, align 8, !tbaa !5
  %122 = load ptr, ptr %121, align 8, !tbaa !5
  %123 = icmp eq ptr %122, null
  br i1 %123, label %124, label %125

124:                                              ; preds = %109
  call void @die(ptr noundef @.str.18, i32 noundef 445, ptr noundef @.str.7)
  br label %125

125:                                              ; preds = %124, %109
  %126 = load ptr, ptr %10, align 8, !tbaa !5
  %127 = getelementptr inbounds %struct.t_param, ptr %126, i32 0, i32 1
  %128 = load i32, ptr %127, align 4, !tbaa !11
  %129 = load ptr, ptr %10, align 8, !tbaa !5
  %130 = getelementptr inbounds %struct.t_param, ptr %129, i32 0, i32 0
  %131 = load i32, ptr %130, align 8, !tbaa !14
  %132 = mul nsw i32 %128, %131
  %133 = sext i32 %132 to i64
  %134 = mul i64 8, %133
  %135 = call noalias ptr @malloc(i64 noundef %134) #6
  %136 = load ptr, ptr %13, align 8, !tbaa !5
  store ptr %135, ptr %136, align 8, !tbaa !5
  %137 = load ptr, ptr %13, align 8, !tbaa !5
  %138 = load ptr, ptr %137, align 8, !tbaa !5
  %139 = icmp eq ptr %138, null
  br i1 %139, label %140, label %141

140:                                              ; preds = %125
  call void @die(ptr noundef @.str.19, i32 noundef 450, ptr noundef @.str.7)
  br label %141

141:                                              ; preds = %140, %125
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = getelementptr inbounds %struct.t_param, ptr %142, i32 0, i32 4
  %144 = load double, ptr %143, align 8, !tbaa !15
  %145 = fmul double %144, 4.000000e+00
  %146 = fdiv double %145, 9.000000e+00
  store double %146, ptr %23, align 8, !tbaa !16
  %147 = load ptr, ptr %10, align 8, !tbaa !5
  %148 = getelementptr inbounds %struct.t_param, ptr %147, i32 0, i32 4
  %149 = load double, ptr %148, align 8, !tbaa !15
  %150 = fdiv double %149, 9.000000e+00
  store double %150, ptr %24, align 8, !tbaa !16
  %151 = load ptr, ptr %10, align 8, !tbaa !5
  %152 = getelementptr inbounds %struct.t_param, ptr %151, i32 0, i32 4
  %153 = load double, ptr %152, align 8, !tbaa !15
  %154 = fdiv double %153, 3.600000e+01
  store double %154, ptr %25, align 8, !tbaa !16
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %155

155:                                              ; preds = %299, %141
  %156 = load i32, ptr %17, align 4, !tbaa !9
  %157 = load ptr, ptr %10, align 8, !tbaa !5
  %158 = getelementptr inbounds %struct.t_param, ptr %157, i32 0, i32 1
  %159 = load i32, ptr %158, align 4, !tbaa !11
  %160 = icmp slt i32 %156, %159
  br i1 %160, label %161, label %302

161:                                              ; preds = %155
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %162

162:                                              ; preds = %295, %161
  %163 = load i32, ptr %18, align 4, !tbaa !9
  %164 = load ptr, ptr %10, align 8, !tbaa !5
  %165 = getelementptr inbounds %struct.t_param, ptr %164, i32 0, i32 0
  %166 = load i32, ptr %165, align 8, !tbaa !14
  %167 = icmp slt i32 %163, %166
  br i1 %167, label %168, label %298

168:                                              ; preds = %162
  %169 = load double, ptr %23, align 8, !tbaa !16
  %170 = load ptr, ptr %11, align 8, !tbaa !5
  %171 = load ptr, ptr %170, align 8, !tbaa !5
  %172 = load i32, ptr %17, align 4, !tbaa !9
  %173 = load ptr, ptr %10, align 8, !tbaa !5
  %174 = getelementptr inbounds %struct.t_param, ptr %173, i32 0, i32 0
  %175 = load i32, ptr %174, align 8, !tbaa !14
  %176 = mul nsw i32 %172, %175
  %177 = load i32, ptr %18, align 4, !tbaa !9
  %178 = add nsw i32 %176, %177
  %179 = sext i32 %178 to i64
  %180 = getelementptr inbounds %struct.t_speed, ptr %171, i64 %179
  %181 = getelementptr inbounds %struct.t_speed, ptr %180, i32 0, i32 0
  %182 = getelementptr inbounds [9 x double], ptr %181, i64 0, i64 0
  store double %169, ptr %182, align 8, !tbaa !16
  %183 = load double, ptr %24, align 8, !tbaa !16
  %184 = load ptr, ptr %11, align 8, !tbaa !5
  %185 = load ptr, ptr %184, align 8, !tbaa !5
  %186 = load i32, ptr %17, align 4, !tbaa !9
  %187 = load ptr, ptr %10, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.t_param, ptr %187, i32 0, i32 0
  %189 = load i32, ptr %188, align 8, !tbaa !14
  %190 = mul nsw i32 %186, %189
  %191 = load i32, ptr %18, align 4, !tbaa !9
  %192 = add nsw i32 %190, %191
  %193 = sext i32 %192 to i64
  %194 = getelementptr inbounds %struct.t_speed, ptr %185, i64 %193
  %195 = getelementptr inbounds %struct.t_speed, ptr %194, i32 0, i32 0
  %196 = getelementptr inbounds [9 x double], ptr %195, i64 0, i64 1
  store double %183, ptr %196, align 8, !tbaa !16
  %197 = load double, ptr %24, align 8, !tbaa !16
  %198 = load ptr, ptr %11, align 8, !tbaa !5
  %199 = load ptr, ptr %198, align 8, !tbaa !5
  %200 = load i32, ptr %17, align 4, !tbaa !9
  %201 = load ptr, ptr %10, align 8, !tbaa !5
  %202 = getelementptr inbounds %struct.t_param, ptr %201, i32 0, i32 0
  %203 = load i32, ptr %202, align 8, !tbaa !14
  %204 = mul nsw i32 %200, %203
  %205 = load i32, ptr %18, align 4, !tbaa !9
  %206 = add nsw i32 %204, %205
  %207 = sext i32 %206 to i64
  %208 = getelementptr inbounds %struct.t_speed, ptr %199, i64 %207
  %209 = getelementptr inbounds %struct.t_speed, ptr %208, i32 0, i32 0
  %210 = getelementptr inbounds [9 x double], ptr %209, i64 0, i64 2
  store double %197, ptr %210, align 8, !tbaa !16
  %211 = load double, ptr %24, align 8, !tbaa !16
  %212 = load ptr, ptr %11, align 8, !tbaa !5
  %213 = load ptr, ptr %212, align 8, !tbaa !5
  %214 = load i32, ptr %17, align 4, !tbaa !9
  %215 = load ptr, ptr %10, align 8, !tbaa !5
  %216 = getelementptr inbounds %struct.t_param, ptr %215, i32 0, i32 0
  %217 = load i32, ptr %216, align 8, !tbaa !14
  %218 = mul nsw i32 %214, %217
  %219 = load i32, ptr %18, align 4, !tbaa !9
  %220 = add nsw i32 %218, %219
  %221 = sext i32 %220 to i64
  %222 = getelementptr inbounds %struct.t_speed, ptr %213, i64 %221
  %223 = getelementptr inbounds %struct.t_speed, ptr %222, i32 0, i32 0
  %224 = getelementptr inbounds [9 x double], ptr %223, i64 0, i64 3
  store double %211, ptr %224, align 8, !tbaa !16
  %225 = load double, ptr %24, align 8, !tbaa !16
  %226 = load ptr, ptr %11, align 8, !tbaa !5
  %227 = load ptr, ptr %226, align 8, !tbaa !5
  %228 = load i32, ptr %17, align 4, !tbaa !9
  %229 = load ptr, ptr %10, align 8, !tbaa !5
  %230 = getelementptr inbounds %struct.t_param, ptr %229, i32 0, i32 0
  %231 = load i32, ptr %230, align 8, !tbaa !14
  %232 = mul nsw i32 %228, %231
  %233 = load i32, ptr %18, align 4, !tbaa !9
  %234 = add nsw i32 %232, %233
  %235 = sext i32 %234 to i64
  %236 = getelementptr inbounds %struct.t_speed, ptr %227, i64 %235
  %237 = getelementptr inbounds %struct.t_speed, ptr %236, i32 0, i32 0
  %238 = getelementptr inbounds [9 x double], ptr %237, i64 0, i64 4
  store double %225, ptr %238, align 8, !tbaa !16
  %239 = load double, ptr %25, align 8, !tbaa !16
  %240 = load ptr, ptr %11, align 8, !tbaa !5
  %241 = load ptr, ptr %240, align 8, !tbaa !5
  %242 = load i32, ptr %17, align 4, !tbaa !9
  %243 = load ptr, ptr %10, align 8, !tbaa !5
  %244 = getelementptr inbounds %struct.t_param, ptr %243, i32 0, i32 0
  %245 = load i32, ptr %244, align 8, !tbaa !14
  %246 = mul nsw i32 %242, %245
  %247 = load i32, ptr %18, align 4, !tbaa !9
  %248 = add nsw i32 %246, %247
  %249 = sext i32 %248 to i64
  %250 = getelementptr inbounds %struct.t_speed, ptr %241, i64 %249
  %251 = getelementptr inbounds %struct.t_speed, ptr %250, i32 0, i32 0
  %252 = getelementptr inbounds [9 x double], ptr %251, i64 0, i64 5
  store double %239, ptr %252, align 8, !tbaa !16
  %253 = load double, ptr %25, align 8, !tbaa !16
  %254 = load ptr, ptr %11, align 8, !tbaa !5
  %255 = load ptr, ptr %254, align 8, !tbaa !5
  %256 = load i32, ptr %17, align 4, !tbaa !9
  %257 = load ptr, ptr %10, align 8, !tbaa !5
  %258 = getelementptr inbounds %struct.t_param, ptr %257, i32 0, i32 0
  %259 = load i32, ptr %258, align 8, !tbaa !14
  %260 = mul nsw i32 %256, %259
  %261 = load i32, ptr %18, align 4, !tbaa !9
  %262 = add nsw i32 %260, %261
  %263 = sext i32 %262 to i64
  %264 = getelementptr inbounds %struct.t_speed, ptr %255, i64 %263
  %265 = getelementptr inbounds %struct.t_speed, ptr %264, i32 0, i32 0
  %266 = getelementptr inbounds [9 x double], ptr %265, i64 0, i64 6
  store double %253, ptr %266, align 8, !tbaa !16
  %267 = load double, ptr %25, align 8, !tbaa !16
  %268 = load ptr, ptr %11, align 8, !tbaa !5
  %269 = load ptr, ptr %268, align 8, !tbaa !5
  %270 = load i32, ptr %17, align 4, !tbaa !9
  %271 = load ptr, ptr %10, align 8, !tbaa !5
  %272 = getelementptr inbounds %struct.t_param, ptr %271, i32 0, i32 0
  %273 = load i32, ptr %272, align 8, !tbaa !14
  %274 = mul nsw i32 %270, %273
  %275 = load i32, ptr %18, align 4, !tbaa !9
  %276 = add nsw i32 %274, %275
  %277 = sext i32 %276 to i64
  %278 = getelementptr inbounds %struct.t_speed, ptr %269, i64 %277
  %279 = getelementptr inbounds %struct.t_speed, ptr %278, i32 0, i32 0
  %280 = getelementptr inbounds [9 x double], ptr %279, i64 0, i64 7
  store double %267, ptr %280, align 8, !tbaa !16
  %281 = load double, ptr %25, align 8, !tbaa !16
  %282 = load ptr, ptr %11, align 8, !tbaa !5
  %283 = load ptr, ptr %282, align 8, !tbaa !5
  %284 = load i32, ptr %17, align 4, !tbaa !9
  %285 = load ptr, ptr %10, align 8, !tbaa !5
  %286 = getelementptr inbounds %struct.t_param, ptr %285, i32 0, i32 0
  %287 = load i32, ptr %286, align 8, !tbaa !14
  %288 = mul nsw i32 %284, %287
  %289 = load i32, ptr %18, align 4, !tbaa !9
  %290 = add nsw i32 %288, %289
  %291 = sext i32 %290 to i64
  %292 = getelementptr inbounds %struct.t_speed, ptr %283, i64 %291
  %293 = getelementptr inbounds %struct.t_speed, ptr %292, i32 0, i32 0
  %294 = getelementptr inbounds [9 x double], ptr %293, i64 0, i64 8
  store double %281, ptr %294, align 8, !tbaa !16
  br label %295

295:                                              ; preds = %168
  %296 = load i32, ptr %18, align 4, !tbaa !9
  %297 = add nsw i32 %296, 1
  store i32 %297, ptr %18, align 4, !tbaa !9
  br label %162, !llvm.loop !17

298:                                              ; preds = %162
  br label %299

299:                                              ; preds = %298
  %300 = load i32, ptr %17, align 4, !tbaa !9
  %301 = add nsw i32 %300, 1
  store i32 %301, ptr %17, align 4, !tbaa !9
  br label %155, !llvm.loop !19

302:                                              ; preds = %155
  store i32 0, ptr %17, align 4, !tbaa !9
  br label %303

303:                                              ; preds = %332, %302
  %304 = load i32, ptr %17, align 4, !tbaa !9
  %305 = load ptr, ptr %10, align 8, !tbaa !5
  %306 = getelementptr inbounds %struct.t_param, ptr %305, i32 0, i32 1
  %307 = load i32, ptr %306, align 4, !tbaa !11
  %308 = icmp slt i32 %304, %307
  br i1 %308, label %309, label %335

309:                                              ; preds = %303
  store i32 0, ptr %18, align 4, !tbaa !9
  br label %310

310:                                              ; preds = %328, %309
  %311 = load i32, ptr %18, align 4, !tbaa !9
  %312 = load ptr, ptr %10, align 8, !tbaa !5
  %313 = getelementptr inbounds %struct.t_param, ptr %312, i32 0, i32 0
  %314 = load i32, ptr %313, align 8, !tbaa !14
  %315 = icmp slt i32 %311, %314
  br i1 %315, label %316, label %331

316:                                              ; preds = %310
  %317 = load ptr, ptr %13, align 8, !tbaa !5
  %318 = load ptr, ptr %317, align 8, !tbaa !5
  %319 = load i32, ptr %17, align 4, !tbaa !9
  %320 = load ptr, ptr %10, align 8, !tbaa !5
  %321 = getelementptr inbounds %struct.t_param, ptr %320, i32 0, i32 0
  %322 = load i32, ptr %321, align 8, !tbaa !14
  %323 = mul nsw i32 %319, %322
  %324 = load i32, ptr %18, align 4, !tbaa !9
  %325 = add nsw i32 %323, %324
  %326 = sext i32 %325 to i64
  %327 = getelementptr inbounds i32, ptr %318, i64 %326
  store i32 0, ptr %327, align 4, !tbaa !9
  br label %328

328:                                              ; preds = %316
  %329 = load i32, ptr %18, align 4, !tbaa !9
  %330 = add nsw i32 %329, 1
  store i32 %330, ptr %18, align 4, !tbaa !9
  br label %310, !llvm.loop !20

331:                                              ; preds = %310
  br label %332

332:                                              ; preds = %331
  %333 = load i32, ptr %17, align 4, !tbaa !9
  %334 = add nsw i32 %333, 1
  store i32 %334, ptr %17, align 4, !tbaa !9
  br label %303, !llvm.loop !21

335:                                              ; preds = %303
  %336 = load ptr, ptr %9, align 8, !tbaa !5
  %337 = call noalias ptr @fopen(ptr noundef %336, ptr noundef @.str.5)
  store ptr %337, ptr %16, align 8, !tbaa !5
  %338 = load ptr, ptr %16, align 8, !tbaa !5
  %339 = icmp eq ptr %338, null
  br i1 %339, label %340, label %345

340:                                              ; preds = %335
  %341 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
  %342 = load ptr, ptr %9, align 8, !tbaa !5
  %343 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef %341, ptr noundef @.str.20, ptr noundef %342) #5
  %344 = getelementptr inbounds [1024 x i8], ptr %15, i64 0, i64 0
  call void @die(ptr noundef %344, i32 noundef 485, ptr noundef @.str.7)
  br label %345

345:                                              ; preds = %340, %335
  br label %346

346:                                              ; preds = %380, %345
  %347 = load ptr, ptr %16, align 8, !tbaa !5
  %348 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %347, ptr noundef @.str.21, ptr noundef %19, ptr noundef %20, ptr noundef %21)
  store i32 %348, ptr %22, align 4, !tbaa !9
  %349 = icmp ne i32 %348, -1
  br i1 %349, label %350, label %393

350:                                              ; preds = %346
  %351 = load i32, ptr %22, align 4, !tbaa !9
  %352 = icmp ne i32 %351, 3
  br i1 %352, label %353, label %354

353:                                              ; preds = %350
  call void @die(ptr noundef @.str.22, i32 noundef 492, ptr noundef @.str.7)
  br label %354

354:                                              ; preds = %353, %350
  %355 = load i32, ptr %19, align 4, !tbaa !9
  %356 = icmp slt i32 %355, 0
  br i1 %356, label %364, label %357

357:                                              ; preds = %354
  %358 = load i32, ptr %19, align 4, !tbaa !9
  %359 = load ptr, ptr %10, align 8, !tbaa !5
  %360 = getelementptr inbounds %struct.t_param, ptr %359, i32 0, i32 0
  %361 = load i32, ptr %360, align 8, !tbaa !14
  %362 = sub nsw i32 %361, 1
  %363 = icmp sgt i32 %358, %362
  br i1 %363, label %364, label %365

364:                                              ; preds = %357, %354
  call void @die(ptr noundef @.str.23, i32 noundef 494, ptr noundef @.str.7)
  br label %365

365:                                              ; preds = %364, %357
  %366 = load i32, ptr %20, align 4, !tbaa !9
  %367 = icmp slt i32 %366, 0
  br i1 %367, label %375, label %368

368:                                              ; preds = %365
  %369 = load i32, ptr %20, align 4, !tbaa !9
  %370 = load ptr, ptr %10, align 8, !tbaa !5
  %371 = getelementptr inbounds %struct.t_param, ptr %370, i32 0, i32 1
  %372 = load i32, ptr %371, align 4, !tbaa !11
  %373 = sub nsw i32 %372, 1
  %374 = icmp sgt i32 %369, %373
  br i1 %374, label %375, label %376

375:                                              ; preds = %368, %365
  call void @die(ptr noundef @.str.24, i32 noundef 496, ptr noundef @.str.7)
  br label %376

376:                                              ; preds = %375, %368
  %377 = load i32, ptr %21, align 4, !tbaa !9
  %378 = icmp ne i32 %377, 1
  br i1 %378, label %379, label %380

379:                                              ; preds = %376
  call void @die(ptr noundef @.str.25, i32 noundef 498, ptr noundef @.str.7)
  br label %380

380:                                              ; preds = %379, %376
  %381 = load i32, ptr %21, align 4, !tbaa !9
  %382 = load ptr, ptr %13, align 8, !tbaa !5
  %383 = load ptr, ptr %382, align 8, !tbaa !5
  %384 = load i32, ptr %20, align 4, !tbaa !9
  %385 = load ptr, ptr %10, align 8, !tbaa !5
  %386 = getelementptr inbounds %struct.t_param, ptr %385, i32 0, i32 0
  %387 = load i32, ptr %386, align 8, !tbaa !14
  %388 = mul nsw i32 %384, %387
  %389 = load i32, ptr %19, align 4, !tbaa !9
  %390 = add nsw i32 %388, %389
  %391 = sext i32 %390 to i64
  %392 = getelementptr inbounds i32, ptr %383, i64 %391
  store i32 %381, ptr %392, align 4, !tbaa !9
  br label %346, !llvm.loop !22

393:                                              ; preds = %346
  %394 = load ptr, ptr %16, align 8, !tbaa !5
  %395 = call i32 @fclose(ptr noundef %394)
  %396 = load ptr, ptr %10, align 8, !tbaa !5
  %397 = getelementptr inbounds %struct.t_param, ptr %396, i32 0, i32 2
  %398 = load i32, ptr %397, align 8, !tbaa !23
  %399 = sext i32 %398 to i64
  %400 = mul i64 8, %399
  %401 = call noalias ptr @malloc(i64 noundef %400) #6
  %402 = load ptr, ptr %14, align 8, !tbaa !5
  store ptr %401, ptr %402, align 8, !tbaa !5
  call void @llvm.lifetime.end.p0(i64 8, ptr %25) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %24) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %23) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %22) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %20) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %19) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %18) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr %17) #5
  call void @llvm.lifetime.end.p0(i64 8, ptr %16) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr %15) #5
  ret i32 0
}

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

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

; Function Attrs: nounwind
declare i32 @sprintf(ptr noundef, ptr noundef, ...) #3

; Function Attrs: nounwind uwtable
declare dso_local void @die(ptr noundef, i32 noundef, ptr noundef) #1

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

declare i32 @fclose(ptr noundef) #2

; Function Attrs: nounwind allocsize(0)
declare noalias ptr @malloc(i64 noundef) #4

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


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

%struct.t_speed = type { [9 x double] }

@.str.5 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.6 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.7 = external hidden unnamed_addr constant [92 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.9 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [36 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [33 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [37 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [40 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [10 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [44 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [30 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [35 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

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @initialise(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr nocapture noundef %3, ptr nocapture noundef writeonly %4, ptr nocapture noundef %5, ptr nocapture noundef writeonly %6) local_unnamed_addr #1 {
  %8 = alloca [1024 x i8], align 16
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %8) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %11) #5
  %12 = tail call noalias ptr @fopen(ptr noundef %0, ptr noundef nonnull @.str.5)
  %13 = icmp eq ptr %12, null
  br i1 %13, label %14, label %16

14:                                               ; preds = %7
  %15 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.6, ptr noundef %0) #5
  call void @die(ptr noundef nonnull %8, i32 noundef 396, ptr noundef nonnull @.str.7)
  br label %16

16:                                               ; preds = %14, %7
  %17 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %12, ptr noundef nonnull @.str.8, ptr noundef %2) #5
  %.not = icmp eq i32 %17, 1
  br i1 %.not, label %19, label %18

18:                                               ; preds = %16
  call void @die(ptr noundef nonnull @.str.9, i32 noundef 401, ptr noundef nonnull @.str.7)
  br label %19

19:                                               ; preds = %18, %16
  %20 = getelementptr inbounds i8, ptr %2, i64 4
  %21 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %12, ptr noundef nonnull @.str.8, ptr noundef nonnull %20) #5
  %.not119 = icmp eq i32 %21, 1
  br i1 %.not119, label %23, label %22

22:                                               ; preds = %19
  call void @die(ptr noundef nonnull @.str.10, i32 noundef 403, ptr noundef nonnull @.str.7)
  br label %23

23:                                               ; preds = %22, %19
  %24 = getelementptr inbounds i8, ptr %2, i64 8
  %25 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %12, ptr noundef nonnull @.str.8, ptr noundef nonnull %24) #5
  %.not120 = icmp eq i32 %25, 1
  br i1 %.not120, label %27, label %26

26:                                               ; preds = %23
  call void @die(ptr noundef nonnull @.str.11, i32 noundef 405, ptr noundef nonnull @.str.7)
  br label %27

27:                                               ; preds = %26, %23
  %28 = getelementptr inbounds i8, ptr %2, i64 12
  %29 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %12, ptr noundef nonnull @.str.8, ptr noundef nonnull %28) #5
  %.not121 = icmp eq i32 %29, 1
  br i1 %.not121, label %31, label %30

30:                                               ; preds = %27
  call void @die(ptr noundef nonnull @.str.12, i32 noundef 407, ptr noundef nonnull @.str.7)
  br label %31

31:                                               ; preds = %30, %27
  %32 = getelementptr inbounds i8, ptr %2, i64 16
  %33 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %12, ptr noundef nonnull @.str.13, ptr noundef nonnull %32) #5
  %.not122 = icmp eq i32 %33, 1
  br i1 %.not122, label %35, label %34

34:                                               ; preds = %31
  call void @die(ptr noundef nonnull @.str.14, i32 noundef 409, ptr noundef nonnull @.str.7)
  br label %35

35:                                               ; preds = %34, %31
  %36 = getelementptr inbounds i8, ptr %2, i64 24
  %37 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %12, ptr noundef nonnull @.str.13, ptr noundef nonnull %36) #5
  %.not123 = icmp eq i32 %37, 1
  br i1 %.not123, label %39, label %38

38:                                               ; preds = %35
  call void @die(ptr noundef nonnull @.str.15, i32 noundef 411, ptr noundef nonnull @.str.7)
  br label %39

39:                                               ; preds = %38, %35
  %40 = getelementptr inbounds i8, ptr %2, i64 32
  %41 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %12, ptr noundef nonnull @.str.13, ptr noundef nonnull %40) #5
  %.not124 = icmp eq i32 %41, 1
  br i1 %.not124, label %43, label %42

42:                                               ; preds = %39
  call void @die(ptr noundef nonnull @.str.16, i32 noundef 413, ptr noundef nonnull @.str.7)
  br label %43

43:                                               ; preds = %42, %39
  %44 = call i32 @fclose(ptr noundef %12)
  %45 = load i32, ptr %20, align 4, !tbaa !5
  %46 = load i32, ptr %2, align 8, !tbaa !11
  %47 = mul nsw i32 %46, %45
  %48 = sext i32 %47 to i64
  %49 = mul nsw i64 %48, 72
  %50 = call noalias ptr @malloc(i64 noundef %49) #6
  store ptr %50, ptr %3, align 8, !tbaa !12
  %51 = icmp eq ptr %50, null
  br i1 %51, label %52, label %53

52:                                               ; preds = %43
  call void @die(ptr noundef nonnull @.str.17, i32 noundef 440, ptr noundef nonnull @.str.7)
  %.pre = load i32, ptr %20, align 4, !tbaa !5
  %.pre145 = load i32, ptr %2, align 8, !tbaa !11
  %.pre151 = mul nsw i32 %.pre145, %.pre
  %.pre152 = sext i32 %.pre151 to i64
  %.pre154 = mul nsw i64 %.pre152, 72
  br label %53

53:                                               ; preds = %52, %43
  %.pre-phi155 = phi i64 [ %.pre154, %52 ], [ %49, %43 ]
  %.pre-phi153 = phi i64 [ %.pre152, %52 ], [ %48, %43 ]
  %54 = phi i32 [ %.pre, %52 ], [ %45, %43 ]
  %55 = call noalias ptr @malloc(i64 noundef %.pre-phi155) #6
  store ptr %55, ptr %4, align 8, !tbaa !12
  %56 = icmp eq ptr %55, null
  br i1 %56, label %57, label %58

57:                                               ; preds = %53
  call void @die(ptr noundef nonnull @.str.18, i32 noundef 445, ptr noundef nonnull @.str.7)
  %.pre146 = load i32, ptr %20, align 4, !tbaa !5
  %.pre147 = load i32, ptr %2, align 8, !tbaa !11
  %.pre156 = mul nsw i32 %.pre147, %.pre146
  %.pre158 = sext i32 %.pre156 to i64
  br label %58

58:                                               ; preds = %57, %53
  %.pre-phi159 = phi i64 [ %.pre158, %57 ], [ %.pre-phi153, %53 ]
  %59 = phi i32 [ %.pre146, %57 ], [ %54, %53 ]
  %60 = shl nsw i64 %.pre-phi159, 3
  %61 = call noalias ptr @malloc(i64 noundef %60) #6
  store ptr %61, ptr %5, align 8, !tbaa !12
  %62 = icmp eq ptr %61, null
  br i1 %62, label %63, label %64

63:                                               ; preds = %58
  call void @die(ptr noundef nonnull @.str.19, i32 noundef 450, ptr noundef nonnull @.str.7)
  %.pre148 = load i32, ptr %20, align 4, !tbaa !5
  br label %64

64:                                               ; preds = %63, %58
  %65 = phi i32 [ %.pre148, %63 ], [ %59, %58 ]
  %66 = load double, ptr %32, align 8, !tbaa !14
  %67 = fmul double %66, 4.000000e+00
  %68 = insertelement <2 x double> poison, double %67, i64 0
  %69 = insertelement <2 x double> %68, double %66, i64 1
  %70 = fdiv <2 x double> %69, <double 9.000000e+00, double 9.000000e+00>
  %71 = fdiv double %66, 3.600000e+01
  %72 = icmp sgt i32 %65, 0
  br i1 %72, label %.preheader131.lr.ph, label %._crit_edge136

.preheader131.lr.ph:                              ; preds = %64
  %73 = load i32, ptr %2, align 8, !tbaa !11
  %74 = icmp sgt i32 %73, 0
  br i1 %74, label %.preheader131.lr.ph.split.us, label %._crit_edge136

.preheader131.lr.ph.split.us:                     ; preds = %.preheader131.lr.ph
  %75 = load ptr, ptr %3, align 8, !tbaa !12
  %76 = zext nneg i32 %73 to i64
  %wide.trip.count143 = zext nneg i32 %65 to i64
  %77 = extractelement <2 x double> %70, i64 1
  br label %.preheader131.us

.preheader131.us:                                 ; preds = %._crit_edge.us, %.preheader131.lr.ph.split.us
  %indvars.iv140 = phi i64 [ %indvars.iv.next141, %._crit_edge.us ], [ 0, %.preheader131.lr.ph.split.us ]
  %78 = mul nuw nsw i64 %indvars.iv140, %76
  br label %79

79:                                               ; preds = %.preheader131.us, %79
  %indvars.iv = phi i64 [ 0, %.preheader131.us ], [ %indvars.iv.next, %79 ]
  %80 = add nuw nsw i64 %78, %indvars.iv
  %81 = getelementptr inbounds %struct.t_speed, ptr %75, i64 %80
  store <2 x double> %70, ptr %81, align 8, !tbaa !15
  %82 = getelementptr inbounds %struct.t_speed, ptr %75, i64 %80, i32 0, i64 2
  store double %77, ptr %82, align 8, !tbaa !15
  %83 = getelementptr inbounds %struct.t_speed, ptr %75, i64 %80, i32 0, i64 3
  store double %77, ptr %83, align 8, !tbaa !15
  %84 = getelementptr inbounds %struct.t_speed, ptr %75, i64 %80, i32 0, i64 4
  store double %77, ptr %84, align 8, !tbaa !15
  %85 = getelementptr inbounds %struct.t_speed, ptr %75, i64 %80, i32 0, i64 5
  store double %71, ptr %85, align 8, !tbaa !15
  %86 = getelementptr inbounds %struct.t_speed, ptr %75, i64 %80, i32 0, i64 6
  store double %71, ptr %86, align 8, !tbaa !15
  %87 = getelementptr inbounds %struct.t_speed, ptr %75, i64 %80, i32 0, i64 7
  store double %71, ptr %87, align 8, !tbaa !15
  %88 = getelementptr inbounds %struct.t_speed, ptr %75, i64 %80, i32 0, i64 8
  store double %71, ptr %88, align 8, !tbaa !15
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %76
  br i1 %exitcond.not, label %._crit_edge.us, label %79, !llvm.loop !16

._crit_edge.us:                                   ; preds = %79
  %indvars.iv.next141 = add nuw nsw i64 %indvars.iv140, 1
  %exitcond144.not = icmp eq i64 %indvars.iv.next141, %wide.trip.count143
  br i1 %exitcond144.not, label %.preheader130, label %.preheader131.us, !llvm.loop !18

.preheader130:                                    ; preds = %._crit_edge.us
  br i1 %72, label %.preheader.lr.ph, label %._crit_edge136

.preheader.lr.ph:                                 ; preds = %.preheader130
  %.pr = load i32, ptr %2, align 8, !tbaa !11
  %89 = icmp sgt i32 %.pr, 0
  br i1 %89, label %.preheader, label %._crit_edge136

.preheader:                                       ; preds = %.preheader.lr.ph, %._crit_edge
  %90 = phi i32 [ %103, %._crit_edge ], [ %65, %.preheader.lr.ph ]
  %91 = phi i32 [ %104, %._crit_edge ], [ %.pr, %.preheader.lr.ph ]
  %.1135 = phi i32 [ %105, %._crit_edge ], [ 0, %.preheader.lr.ph ]
  %92 = icmp sgt i32 %91, 0
  br i1 %92, label %.lr.ph, label %._crit_edge

.lr.ph:                                           ; preds = %.preheader
  %93 = load ptr, ptr %5, align 8, !tbaa !12
  br label %94

94:                                               ; preds = %.lr.ph, %94
  %95 = phi i32 [ %91, %.lr.ph ], [ %101, %94 ]
  %.1113134 = phi i32 [ 0, %.lr.ph ], [ %100, %94 ]
  %96 = mul nsw i32 %95, %.1135
  %97 = add nsw i32 %96, %.1113134
  %98 = sext i32 %97 to i64
  %99 = getelementptr inbounds i32, ptr %93, i64 %98
  store i32 0, ptr %99, align 4, !tbaa !19
  %100 = add nuw nsw i32 %.1113134, 1
  %101 = load i32, ptr %2, align 8, !tbaa !11
  %102 = icmp slt i32 %100, %101
  br i1 %102, label %94, label %._crit_edge.loopexit, !llvm.loop !20

._crit_edge.loopexit:                             ; preds = %94
  %.pre149 = load i32, ptr %20, align 4, !tbaa !5
  br label %._crit_edge

._crit_edge:                                      ; preds = %._crit_edge.loopexit, %.preheader
  %103 = phi i32 [ %.pre149, %._crit_edge.loopexit ], [ %90, %.preheader ]
  %104 = phi i32 [ %101, %._crit_edge.loopexit ], [ %91, %.preheader ]
  %105 = add nuw nsw i32 %.1135, 1
  %106 = icmp slt i32 %105, %103
  br i1 %106, label %.preheader, label %._crit_edge136, !llvm.loop !21

._crit_edge136:                                   ; preds = %._crit_edge, %.preheader131.lr.ph, %64, %.preheader.lr.ph, %.preheader130
  %107 = call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.5)
  %108 = icmp eq ptr %107, null
  br i1 %108, label %109, label %.preheader161

109:                                              ; preds = %._crit_edge136
  %110 = call i32 (ptr, ptr, ...) @sprintf(ptr noundef nonnull dereferenceable(1) %8, ptr noundef nonnull dereferenceable(1) @.str.20, ptr noundef %1) #5
  call void @die(ptr noundef nonnull %8, i32 noundef 485, ptr noundef nonnull @.str.7)
  br label %.preheader161

.preheader161:                                    ; preds = %109, %._crit_edge136
  br label %111

111:                                              ; preds = %.preheader161, %129
  %112 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %107, ptr noundef nonnull @.str.21, ptr noundef nonnull %9, ptr noundef nonnull %10, ptr noundef nonnull %11) #5
  switch i32 %112, label %113 [
    i32 -1, label %139
    i32 3, label %114
  ]

113:                                              ; preds = %111
  call void @die(ptr noundef nonnull @.str.22, i32 noundef 492, ptr noundef nonnull @.str.7)
  br label %114

114:                                              ; preds = %111, %113
  %115 = load i32, ptr %9, align 4, !tbaa !19
  %116 = icmp slt i32 %115, 0
  br i1 %116, label %119, label %117

117:                                              ; preds = %114
  %118 = load i32, ptr %2, align 8, !tbaa !11
  %.not127 = icmp slt i32 %115, %118
  br i1 %.not127, label %120, label %119

119:                                              ; preds = %117, %114
  call void @die(ptr noundef nonnull @.str.23, i32 noundef 494, ptr noundef nonnull @.str.7)
  br label %120

120:                                              ; preds = %119, %117
  %121 = load i32, ptr %10, align 4, !tbaa !19
  %122 = icmp slt i32 %121, 0
  br i1 %122, label %125, label %123

123:                                              ; preds = %120
  %124 = load i32, ptr %20, align 4, !tbaa !5
  %.not128 = icmp slt i32 %121, %124
  br i1 %.not128, label %126, label %125

125:                                              ; preds = %123, %120
  call void @die(ptr noundef nonnull @.str.24, i32 noundef 496, ptr noundef nonnull @.str.7)
  br label %126

126:                                              ; preds = %125, %123
  %127 = load i32, ptr %11, align 4, !tbaa !19
  %.not129 = icmp eq i32 %127, 1
  br i1 %.not129, label %129, label %128

128:                                              ; preds = %126
  call void @die(ptr noundef nonnull @.str.25, i32 noundef 498, ptr noundef nonnull @.str.7)
  %.pre150 = load i32, ptr %11, align 4, !tbaa !19
  br label %129

129:                                              ; preds = %128, %126
  %130 = phi i32 [ %.pre150, %128 ], [ 1, %126 ]
  %131 = load ptr, ptr %5, align 8, !tbaa !12
  %132 = load i32, ptr %10, align 4, !tbaa !19
  %133 = load i32, ptr %2, align 8, !tbaa !11
  %134 = mul nsw i32 %133, %132
  %135 = load i32, ptr %9, align 4, !tbaa !19
  %136 = add nsw i32 %134, %135
  %137 = sext i32 %136 to i64
  %138 = getelementptr inbounds i32, ptr %131, i64 %137
  store i32 %130, ptr %138, align 4, !tbaa !19
  br label %111, !llvm.loop !23

139:                                              ; preds = %111
  %140 = call i32 @fclose(ptr noundef %107)
  %141 = load i32, ptr %24, align 8, !tbaa !24
  %142 = sext i32 %141 to i64
  %143 = shl nsw i64 %142, 3
  %144 = call noalias ptr @malloc(i64 noundef %143) #6
  store ptr %144, ptr %6, align 8, !tbaa !12
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %11) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %10) #5
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %9) #5
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %8) #5
  ret i32 0
}

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

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

; Function Attrs: nofree nounwind
declare noundef i32 @sprintf(ptr noalias nocapture noundef writeonly, ptr nocapture noundef readonly, ...) local_unnamed_addr #2

; Function Attrs: nounwind uwtable
declare dso_local void @die(ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #1

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

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

; Function Attrs: mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite)
declare noalias noundef ptr @malloc(i64 noundef) local_unnamed_addr #4

attributes #0 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #1 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #2 = { 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 #3 = { "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 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 #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, !7, i64 4}
!6 = !{!"", !7, i64 0, !7, i64 4, !7, i64 8, !7, i64 12, !10, i64 16, !10, i64 24, !10, i64 32}
!7 = !{!"int", !8, i64 0}
!8 = !{!"omnipotent char", !9, i64 0}
!9 = !{!"Simple C/C++ TBAA"}
!10 = !{!"double", !8, i64 0}
!11 = !{!6, !7, i64 0}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !8, i64 0}
!14 = !{!6, !10, i64 16}
!15 = !{!10, !10, i64 0}
!16 = distinct !{!16, !17}
!17 = !{!"llvm.loop.mustprogress"}
!18 = distinct !{!18, !17}
!19 = !{!7, !7, i64 0}
!20 = distinct !{!20, !17}
!21 = distinct !{!21, !17, !22}
!22 = !{!"llvm.loop.unswitch.partial.disable"}
!23 = distinct !{!23, !17}
!24 = !{!6, !7, i64 8}


; Effective O3 passes: BDCEPass,EarlyCSEPass,GVNPass,GlobalOptPass,IPSCCPPass,IndVarSimplifyPass,InferFunctionAttrsPass,InstCombinePass,InstSimplifyPass,JumpThreadingPass,LCSSAPass,LICMPass,LoopRotatePass,LoopSimplifyCFGPass,LoopSimplifyPass,LoopUnrollPass,PostOrderFunctionAttrsPass,ReassociatePass,SLPVectorizerPass,SROAPass,SimpleLoopUnswitchPass,SimplifyCFGPass,TailCallElimPass