; LLVM IR from simbody/simbody :: SimTKmath/Optimizers/src/c-cmaes (cmaes)

; 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.cmaes_t = type { ptr, %struct.cmaes_readpara_t, %struct.cmaes_random_t, double, ptr, ptr, ptr, ptr, ptr, i16, i16, double, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, ptr, double, double, double, double, double, double, double, [330 x i8], i16, i16, double, %struct.cmaes_timings_t, double, double, i16, i64, i64, i64, i64 }
%struct.cmaes_readpara_t = type { ptr, i16, i32, i32, ptr, ptr, i32, ptr, ptr, double, double, double, %struct.anon, double, double, double, double, i32, i32, double, double, ptr, double, double, double, double, double, %struct.anon.0, double, ptr, [99 x i8], ptr, ptr, ptr, ptr, i32, i32, i32 }
%struct.anon = type { i32, double }
%struct.anon.0 = type { i32, double, double }
%struct.cmaes_random_t = type { i64, i64, i64, ptr, i16, double }
%struct.cmaes_timings_t = type { double, double, double, double, i64, i64, i64, i64, i16, i16, double, double }

@.str.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [50 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
declare hidden void @ERRORMESSAGE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

; Function Attrs: nounwind uwtable
define dso_local void @cmaes_resume_distribution(ptr noundef %0, ptr noundef %1) #1 {
  %3 = alloca ptr, align 8
  %4 = alloca ptr, align 8
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca i32, align 4
  %8 = alloca i32, align 4
  %9 = alloca double, align 8
  %10 = alloca ptr, align 8
  %11 = alloca i32, align 4
  store ptr %0, ptr %3, align 8, !tbaa !5
  store ptr %1, ptr %4, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %5) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.start.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.start.p0(i64 8, ptr %10) #3
  %12 = load ptr, ptr %4, align 8, !tbaa !5
  %13 = call noalias ptr @fopen(ptr noundef %12, ptr noundef @.str.9)
  store ptr %13, ptr %10, align 8, !tbaa !5
  %14 = load ptr, ptr %10, align 8, !tbaa !5
  %15 = icmp eq ptr %14, null
  br i1 %15, label %16, label %18

16:                                               ; preds = %2
  %17 = load ptr, ptr %4, align 8, !tbaa !5
  call void @ERRORMESSAGE(ptr noundef @.str.10, ptr noundef %17, ptr noundef @.str.11, ptr noundef null)
  store i32 1, ptr %11, align 4
  br label %355

18:                                               ; preds = %2
  store i32 0, ptr %5, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  br label %19

19:                                               ; preds = %39, %18
  br label %20

20:                                               ; preds = %19
  %21 = load ptr, ptr %10, align 8, !tbaa !5
  %22 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %21, ptr noundef @.str.12, ptr noundef %9)
  store i32 %22, ptr %7, align 4, !tbaa !9
  %23 = icmp eq i32 %22, -1
  br i1 %23, label %24, label %25

24:                                               ; preds = %20
  br label %40

25:                                               ; preds = %20
  %26 = load i32, ptr %7, align 4, !tbaa !9
  %27 = icmp eq i32 %26, 0
  br i1 %27, label %28, label %31

28:                                               ; preds = %25
  %29 = load ptr, ptr %10, align 8, !tbaa !5
  %30 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %29, ptr noundef @.str.13)
  br label %38

31:                                               ; preds = %25
  %32 = load i32, ptr %7, align 4, !tbaa !9
  %33 = icmp sgt i32 %32, 0
  br i1 %33, label %34, label %37

34:                                               ; preds = %31
  %35 = load i32, ptr %5, align 4, !tbaa !9
  %36 = add nsw i32 %35, 1
  store i32 %36, ptr %5, align 4, !tbaa !9
  br label %37

37:                                               ; preds = %34, %31
  br label %38

38:                                               ; preds = %37, %28
  br label %39

39:                                               ; preds = %38
  br label %19

40:                                               ; preds = %24
  %41 = load i32, ptr %5, align 4, !tbaa !9
  store i32 %41, ptr %8, align 4, !tbaa !9
  store i32 0, ptr %5, align 4, !tbaa !9
  store i32 0, ptr %7, align 4, !tbaa !9
  %42 = load ptr, ptr %10, align 8, !tbaa !5
  call void @rewind(ptr noundef %42)
  br label %43

43:                                               ; preds = %66, %40
  %44 = load i32, ptr %5, align 4, !tbaa !9
  %45 = load i32, ptr %8, align 4, !tbaa !9
  %46 = icmp slt i32 %44, %45
  br i1 %46, label %47, label %67

47:                                               ; preds = %43
  %48 = load ptr, ptr %10, align 8, !tbaa !5
  %49 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %48, ptr noundef @.str.12, ptr noundef %9)
  store i32 %49, ptr %7, align 4, !tbaa !9
  %50 = icmp eq i32 %49, -1
  br i1 %50, label %51, label %52

51:                                               ; preds = %47
  call void @FATAL(ptr noundef @.str.14, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %66

52:                                               ; preds = %47
  %53 = load i32, ptr %7, align 4, !tbaa !9
  %54 = icmp eq i32 %53, 0
  br i1 %54, label %55, label %58

55:                                               ; preds = %52
  %56 = load ptr, ptr %10, align 8, !tbaa !5
  %57 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %56, ptr noundef @.str.13)
  br label %65

58:                                               ; preds = %52
  %59 = load i32, ptr %7, align 4, !tbaa !9
  %60 = icmp sgt i32 %59, 0
  br i1 %60, label %61, label %64

61:                                               ; preds = %58
  %62 = load i32, ptr %5, align 4, !tbaa !9
  %63 = add nsw i32 %62, 1
  store i32 %63, ptr %5, align 4, !tbaa !9
  br label %64

64:                                               ; preds = %61, %58
  br label %65

65:                                               ; preds = %64, %55
  br label %66

66:                                               ; preds = %65, %51
  br label %43, !llvm.loop !11

67:                                               ; preds = %43
  %68 = load double, ptr %9, align 8, !tbaa !13
  %69 = load ptr, ptr %3, align 8, !tbaa !5
  %70 = getelementptr inbounds %struct.cmaes_t, ptr %69, i32 0, i32 1
  %71 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %70, i32 0, i32 2
  %72 = load i32, ptr %71, align 4, !tbaa !15
  %73 = sitofp i32 %72 to double
  %74 = fcmp une double %68, %73
  br i1 %74, label %75, label %76

75:                                               ; preds = %67
  call void @FATAL(ptr noundef @.str.15, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %76

76:                                               ; preds = %75, %67
  br label %77

77:                                               ; preds = %95, %76
  br label %78

78:                                               ; preds = %77
  %79 = load ptr, ptr %10, align 8, !tbaa !5
  %80 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %79, ptr noundef @.str.16, ptr noundef %9)
  store i32 %80, ptr %7, align 4, !tbaa !9
  %81 = icmp eq i32 %80, -1
  br i1 %81, label %82, label %83

82:                                               ; preds = %78
  call void @FATAL(ptr noundef @.str.17, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %95

83:                                               ; preds = %78
  %84 = load i32, ptr %7, align 4, !tbaa !9
  %85 = icmp eq i32 %84, 0
  br i1 %85, label %86, label %89

86:                                               ; preds = %83
  %87 = load ptr, ptr %10, align 8, !tbaa !5
  %88 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %87, ptr noundef @.str.13)
  br label %94

89:                                               ; preds = %83
  %90 = load i32, ptr %7, align 4, !tbaa !9
  %91 = icmp sgt i32 %90, 0
  br i1 %91, label %92, label %93

92:                                               ; preds = %89
  br label %96

93:                                               ; preds = %89
  br label %94

94:                                               ; preds = %93, %86
  br label %95

95:                                               ; preds = %94, %82
  br label %77

96:                                               ; preds = %92
  %97 = load double, ptr %9, align 8, !tbaa !13
  %98 = load ptr, ptr %3, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.cmaes_t, ptr %98, i32 0, i32 4
  %100 = load ptr, ptr %99, align 8, !tbaa !24
  %101 = getelementptr inbounds double, ptr %100, i64 0
  store double %97, ptr %101, align 8, !tbaa !13
  store i32 1, ptr %7, align 4, !tbaa !9
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %102

102:                                              ; preds = %120, %96
  %103 = load i32, ptr %5, align 4, !tbaa !9
  %104 = load ptr, ptr %3, align 8, !tbaa !5
  %105 = getelementptr inbounds %struct.cmaes_t, ptr %104, i32 0, i32 1
  %106 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %105, i32 0, i32 2
  %107 = load i32, ptr %106, align 4, !tbaa !15
  %108 = icmp slt i32 %103, %107
  br i1 %108, label %109, label %123

109:                                              ; preds = %102
  %110 = load ptr, ptr %10, align 8, !tbaa !5
  %111 = load ptr, ptr %3, align 8, !tbaa !5
  %112 = getelementptr inbounds %struct.cmaes_t, ptr %111, i32 0, i32 4
  %113 = load ptr, ptr %112, align 8, !tbaa !24
  %114 = load i32, ptr %5, align 4, !tbaa !9
  %115 = sext i32 %114 to i64
  %116 = getelementptr inbounds double, ptr %113, i64 %115
  %117 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %110, ptr noundef @.str.18, ptr noundef %116)
  %118 = load i32, ptr %7, align 4, !tbaa !9
  %119 = add nsw i32 %118, %117
  store i32 %119, ptr %7, align 4, !tbaa !9
  br label %120

120:                                              ; preds = %109
  %121 = load i32, ptr %5, align 4, !tbaa !9
  %122 = add nsw i32 %121, 1
  store i32 %122, ptr %5, align 4, !tbaa !9
  br label %102, !llvm.loop !25

123:                                              ; preds = %102
  %124 = load i32, ptr %7, align 4, !tbaa !9
  %125 = load ptr, ptr %3, align 8, !tbaa !5
  %126 = getelementptr inbounds %struct.cmaes_t, ptr %125, i32 0, i32 1
  %127 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %126, i32 0, i32 2
  %128 = load i32, ptr %127, align 4, !tbaa !15
  %129 = icmp ne i32 %124, %128
  br i1 %129, label %130, label %131

130:                                              ; preds = %123
  call void @FATAL(ptr noundef @.str.19, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %131

131:                                              ; preds = %130, %123
  br label %132

132:                                              ; preds = %150, %131
  br label %133

133:                                              ; preds = %132
  %134 = load ptr, ptr %10, align 8, !tbaa !5
  %135 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %134, ptr noundef @.str.20, ptr noundef %9)
  store i32 %135, ptr %7, align 4, !tbaa !9
  %136 = icmp eq i32 %135, -1
  br i1 %136, label %137, label %138

137:                                              ; preds = %133
  call void @FATAL(ptr noundef @.str.21, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %150

138:                                              ; preds = %133
  %139 = load i32, ptr %7, align 4, !tbaa !9
  %140 = icmp eq i32 %139, 0
  br i1 %140, label %141, label %144

141:                                              ; preds = %138
  %142 = load ptr, ptr %10, align 8, !tbaa !5
  %143 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %142, ptr noundef @.str.13)
  br label %149

144:                                              ; preds = %138
  %145 = load i32, ptr %7, align 4, !tbaa !9
  %146 = icmp sgt i32 %145, 0
  br i1 %146, label %147, label %148

147:                                              ; preds = %144
  br label %151

148:                                              ; preds = %144
  br label %149

149:                                              ; preds = %148, %141
  br label %150

150:                                              ; preds = %149, %137
  br label %132

151:                                              ; preds = %147
  %152 = load double, ptr %9, align 8, !tbaa !13
  %153 = load ptr, ptr %3, align 8, !tbaa !5
  %154 = getelementptr inbounds %struct.cmaes_t, ptr %153, i32 0, i32 16
  %155 = load ptr, ptr %154, align 8, !tbaa !26
  %156 = getelementptr inbounds double, ptr %155, i64 0
  store double %152, ptr %156, align 8, !tbaa !13
  store i32 1, ptr %7, align 4, !tbaa !9
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %157

157:                                              ; preds = %175, %151
  %158 = load i32, ptr %5, align 4, !tbaa !9
  %159 = load ptr, ptr %3, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.cmaes_t, ptr %159, i32 0, i32 1
  %161 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %160, i32 0, i32 2
  %162 = load i32, ptr %161, align 4, !tbaa !15
  %163 = icmp slt i32 %158, %162
  br i1 %163, label %164, label %178

164:                                              ; preds = %157
  %165 = load ptr, ptr %10, align 8, !tbaa !5
  %166 = load ptr, ptr %3, align 8, !tbaa !5
  %167 = getelementptr inbounds %struct.cmaes_t, ptr %166, i32 0, i32 16
  %168 = load ptr, ptr %167, align 8, !tbaa !26
  %169 = load i32, ptr %5, align 4, !tbaa !9
  %170 = sext i32 %169 to i64
  %171 = getelementptr inbounds double, ptr %168, i64 %170
  %172 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %165, ptr noundef @.str.18, ptr noundef %171)
  %173 = load i32, ptr %7, align 4, !tbaa !9
  %174 = add nsw i32 %173, %172
  store i32 %174, ptr %7, align 4, !tbaa !9
  br label %175

175:                                              ; preds = %164
  %176 = load i32, ptr %5, align 4, !tbaa !9
  %177 = add nsw i32 %176, 1
  store i32 %177, ptr %5, align 4, !tbaa !9
  br label %157, !llvm.loop !27

178:                                              ; preds = %157
  %179 = load i32, ptr %7, align 4, !tbaa !9
  %180 = load ptr, ptr %3, align 8, !tbaa !5
  %181 = getelementptr inbounds %struct.cmaes_t, ptr %180, i32 0, i32 1
  %182 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %181, i32 0, i32 2
  %183 = load i32, ptr %182, align 4, !tbaa !15
  %184 = icmp ne i32 %179, %183
  br i1 %184, label %185, label %186

185:                                              ; preds = %178
  call void @FATAL(ptr noundef @.str.22, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %186

186:                                              ; preds = %185, %178
  br label %187

187:                                              ; preds = %205, %186
  br label %188

188:                                              ; preds = %187
  %189 = load ptr, ptr %10, align 8, !tbaa !5
  %190 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %189, ptr noundef @.str.23, ptr noundef %9)
  store i32 %190, ptr %7, align 4, !tbaa !9
  %191 = icmp eq i32 %190, -1
  br i1 %191, label %192, label %193

192:                                              ; preds = %188
  call void @FATAL(ptr noundef @.str.24, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %205

193:                                              ; preds = %188
  %194 = load i32, ptr %7, align 4, !tbaa !9
  %195 = icmp eq i32 %194, 0
  br i1 %195, label %196, label %199

196:                                              ; preds = %193
  %197 = load ptr, ptr %10, align 8, !tbaa !5
  %198 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %197, ptr noundef @.str.13)
  br label %204

199:                                              ; preds = %193
  %200 = load i32, ptr %7, align 4, !tbaa !9
  %201 = icmp sgt i32 %200, 0
  br i1 %201, label %202, label %203

202:                                              ; preds = %199
  br label %206

203:                                              ; preds = %199
  br label %204

204:                                              ; preds = %203, %196
  br label %205

205:                                              ; preds = %204, %192
  br label %187

206:                                              ; preds = %202
  %207 = load double, ptr %9, align 8, !tbaa !13
  %208 = load ptr, ptr %3, align 8, !tbaa !5
  %209 = getelementptr inbounds %struct.cmaes_t, ptr %208, i32 0, i32 15
  %210 = load ptr, ptr %209, align 8, !tbaa !28
  %211 = getelementptr inbounds double, ptr %210, i64 0
  store double %207, ptr %211, align 8, !tbaa !13
  store i32 1, ptr %7, align 4, !tbaa !9
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %212

212:                                              ; preds = %230, %206
  %213 = load i32, ptr %5, align 4, !tbaa !9
  %214 = load ptr, ptr %3, align 8, !tbaa !5
  %215 = getelementptr inbounds %struct.cmaes_t, ptr %214, i32 0, i32 1
  %216 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %215, i32 0, i32 2
  %217 = load i32, ptr %216, align 4, !tbaa !15
  %218 = icmp slt i32 %213, %217
  br i1 %218, label %219, label %233

219:                                              ; preds = %212
  %220 = load ptr, ptr %10, align 8, !tbaa !5
  %221 = load ptr, ptr %3, align 8, !tbaa !5
  %222 = getelementptr inbounds %struct.cmaes_t, ptr %221, i32 0, i32 15
  %223 = load ptr, ptr %222, align 8, !tbaa !28
  %224 = load i32, ptr %5, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds double, ptr %223, i64 %225
  %227 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %220, ptr noundef @.str.18, ptr noundef %226)
  %228 = load i32, ptr %7, align 4, !tbaa !9
  %229 = add nsw i32 %228, %227
  store i32 %229, ptr %7, align 4, !tbaa !9
  br label %230

230:                                              ; preds = %219
  %231 = load i32, ptr %5, align 4, !tbaa !9
  %232 = add nsw i32 %231, 1
  store i32 %232, ptr %5, align 4, !tbaa !9
  br label %212, !llvm.loop !29

233:                                              ; preds = %212
  %234 = load i32, ptr %7, align 4, !tbaa !9
  %235 = load ptr, ptr %3, align 8, !tbaa !5
  %236 = getelementptr inbounds %struct.cmaes_t, ptr %235, i32 0, i32 1
  %237 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %236, i32 0, i32 2
  %238 = load i32, ptr %237, align 4, !tbaa !15
  %239 = icmp ne i32 %234, %238
  br i1 %239, label %240, label %241

240:                                              ; preds = %233
  call void @FATAL(ptr noundef @.str.25, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %241

241:                                              ; preds = %240, %233
  br label %242

242:                                              ; preds = %260, %241
  br label %243

243:                                              ; preds = %242
  %244 = load ptr, ptr %10, align 8, !tbaa !5
  %245 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %244, ptr noundef @.str.26, ptr noundef %9)
  store i32 %245, ptr %7, align 4, !tbaa !9
  %246 = icmp eq i32 %245, -1
  br i1 %246, label %247, label %248

247:                                              ; preds = %243
  call void @FATAL(ptr noundef @.str.27, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %260

248:                                              ; preds = %243
  %249 = load i32, ptr %7, align 4, !tbaa !9
  %250 = icmp eq i32 %249, 0
  br i1 %250, label %251, label %254

251:                                              ; preds = %248
  %252 = load ptr, ptr %10, align 8, !tbaa !5
  %253 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %252, ptr noundef @.str.13)
  br label %259

254:                                              ; preds = %248
  %255 = load i32, ptr %7, align 4, !tbaa !9
  %256 = icmp sgt i32 %255, 0
  br i1 %256, label %257, label %258

257:                                              ; preds = %254
  br label %261

258:                                              ; preds = %254
  br label %259

259:                                              ; preds = %258, %251
  br label %260

260:                                              ; preds = %259, %247
  br label %242

261:                                              ; preds = %257
  %262 = load double, ptr %9, align 8, !tbaa !13
  %263 = load ptr, ptr %3, align 8, !tbaa !5
  %264 = getelementptr inbounds %struct.cmaes_t, ptr %263, i32 0, i32 3
  store double %262, ptr %264, align 8, !tbaa !30
  br label %265

265:                                              ; preds = %283, %261
  br label %266

266:                                              ; preds = %265
  %267 = load ptr, ptr %10, align 8, !tbaa !5
  %268 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %267, ptr noundef @.str.28, ptr noundef %9)
  store i32 %268, ptr %7, align 4, !tbaa !9
  %269 = icmp eq i32 %268, -1
  br i1 %269, label %270, label %271

270:                                              ; preds = %266
  call void @FATAL(ptr noundef @.str.29, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %283

271:                                              ; preds = %266
  %272 = load i32, ptr %7, align 4, !tbaa !9
  %273 = icmp eq i32 %272, 0
  br i1 %273, label %274, label %277

274:                                              ; preds = %271
  %275 = load ptr, ptr %10, align 8, !tbaa !5
  %276 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %275, ptr noundef @.str.13)
  br label %282

277:                                              ; preds = %271
  %278 = load i32, ptr %7, align 4, !tbaa !9
  %279 = icmp sgt i32 %278, 0
  br i1 %279, label %280, label %281

280:                                              ; preds = %277
  br label %284

281:                                              ; preds = %277
  br label %282

282:                                              ; preds = %281, %274
  br label %283

283:                                              ; preds = %282, %270
  br label %265

284:                                              ; preds = %280
  %285 = load double, ptr %9, align 8, !tbaa !13
  %286 = load ptr, ptr %3, align 8, !tbaa !5
  %287 = getelementptr inbounds %struct.cmaes_t, ptr %286, i32 0, i32 12
  %288 = load ptr, ptr %287, align 8, !tbaa !31
  %289 = getelementptr inbounds ptr, ptr %288, i64 0
  %290 = load ptr, ptr %289, align 8, !tbaa !5
  %291 = getelementptr inbounds double, ptr %290, i64 0
  store double %285, ptr %291, align 8, !tbaa !13
  store i32 1, ptr %7, align 4, !tbaa !9
  store i32 1, ptr %5, align 4, !tbaa !9
  br label %292

292:                                              ; preds = %323, %284
  %293 = load i32, ptr %5, align 4, !tbaa !9
  %294 = load ptr, ptr %3, align 8, !tbaa !5
  %295 = getelementptr inbounds %struct.cmaes_t, ptr %294, i32 0, i32 1
  %296 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %295, i32 0, i32 2
  %297 = load i32, ptr %296, align 4, !tbaa !15
  %298 = icmp slt i32 %293, %297
  br i1 %298, label %299, label %326

299:                                              ; preds = %292
  store i32 0, ptr %6, align 4, !tbaa !9
  br label %300

300:                                              ; preds = %319, %299
  %301 = load i32, ptr %6, align 4, !tbaa !9
  %302 = load i32, ptr %5, align 4, !tbaa !9
  %303 = icmp sle i32 %301, %302
  br i1 %303, label %304, label %322

304:                                              ; preds = %300
  %305 = load ptr, ptr %10, align 8, !tbaa !5
  %306 = load ptr, ptr %3, align 8, !tbaa !5
  %307 = getelementptr inbounds %struct.cmaes_t, ptr %306, i32 0, i32 12
  %308 = load ptr, ptr %307, align 8, !tbaa !31
  %309 = load i32, ptr %5, align 4, !tbaa !9
  %310 = sext i32 %309 to i64
  %311 = getelementptr inbounds ptr, ptr %308, i64 %310
  %312 = load ptr, ptr %311, align 8, !tbaa !5
  %313 = load i32, ptr %6, align 4, !tbaa !9
  %314 = sext i32 %313 to i64
  %315 = getelementptr inbounds double, ptr %312, i64 %314
  %316 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %305, ptr noundef @.str.18, ptr noundef %315)
  %317 = load i32, ptr %7, align 4, !tbaa !9
  %318 = add nsw i32 %317, %316
  store i32 %318, ptr %7, align 4, !tbaa !9
  br label %319

319:                                              ; preds = %304
  %320 = load i32, ptr %6, align 4, !tbaa !9
  %321 = add nsw i32 %320, 1
  store i32 %321, ptr %6, align 4, !tbaa !9
  br label %300, !llvm.loop !32

322:                                              ; preds = %300
  br label %323

323:                                              ; preds = %322
  %324 = load i32, ptr %5, align 4, !tbaa !9
  %325 = add nsw i32 %324, 1
  store i32 %325, ptr %5, align 4, !tbaa !9
  br label %292, !llvm.loop !33

326:                                              ; preds = %292
  %327 = load i32, ptr %7, align 4, !tbaa !9
  %328 = load ptr, ptr %3, align 8, !tbaa !5
  %329 = getelementptr inbounds %struct.cmaes_t, ptr %328, i32 0, i32 1
  %330 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %329, i32 0, i32 2
  %331 = load i32, ptr %330, align 4, !tbaa !15
  %332 = load ptr, ptr %3, align 8, !tbaa !5
  %333 = getelementptr inbounds %struct.cmaes_t, ptr %332, i32 0, i32 1
  %334 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %333, i32 0, i32 2
  %335 = load i32, ptr %334, align 4, !tbaa !15
  %336 = mul nsw i32 %331, %335
  %337 = load ptr, ptr %3, align 8, !tbaa !5
  %338 = getelementptr inbounds %struct.cmaes_t, ptr %337, i32 0, i32 1
  %339 = getelementptr inbounds %struct.cmaes_readpara_t, ptr %338, i32 0, i32 2
  %340 = load i32, ptr %339, align 4, !tbaa !15
  %341 = add nsw i32 %336, %340
  %342 = sdiv i32 %341, 2
  %343 = icmp ne i32 %327, %342
  br i1 %343, label %344, label %345

344:                                              ; preds = %326
  call void @FATAL(ptr noundef @.str.30, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %345

345:                                              ; preds = %344, %326
  %346 = load ptr, ptr %10, align 8, !tbaa !5
  %347 = call i32 @fclose(ptr noundef %346)
  %348 = load ptr, ptr %3, align 8, !tbaa !5
  %349 = getelementptr inbounds %struct.cmaes_t, ptr %348, i32 0, i32 9
  store i16 0, ptr %349, align 8, !tbaa !34
  %350 = load ptr, ptr %3, align 8, !tbaa !5
  %351 = getelementptr inbounds %struct.cmaes_t, ptr %350, i32 0, i32 31
  store i16 0, ptr %351, align 2, !tbaa !35
  %352 = load ptr, ptr %3, align 8, !tbaa !5
  %353 = getelementptr inbounds %struct.cmaes_t, ptr %352, i32 0, i32 37
  store i16 1, ptr %353, align 8, !tbaa !36
  %354 = load ptr, ptr %3, align 8, !tbaa !5
  call void @cmaes_UpdateEigensystem(ptr noundef %354, i32 noundef 1)
  store i32 0, ptr %11, align 4
  br label %355

355:                                              ; preds = %345, %16
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #3
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %8) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %7) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %6) #3
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #3
  %356 = load i32, ptr %11, align 4
  switch i32 %356, label %358 [
    i32 0, label %357
    i32 1, label %357
  ]

357:                                              ; preds = %355, %355
  ret void

358:                                              ; preds = %355
  unreachable
}

; 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

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

declare void @rewind(ptr noundef) #2

; Function Attrs: nounwind uwtable
declare hidden void @FATAL(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #1

declare i32 @fclose(ptr noundef) #2

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

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 }

!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 = distinct !{!11, !12}
!12 = !{!"llvm.loop.mustprogress"}
!13 = !{!14, !14, i64 0}
!14 = !{!"double", !7, i64 0}
!15 = !{!16, !10, i64 20}
!16 = !{!"", !6, i64 0, !17, i64 8, !21, i64 408, !14, i64 456, !6, i64 464, !6, i64 472, !6, i64 480, !6, i64 488, !6, i64 496, !18, i64 504, !18, i64 506, !14, i64 512, !6, i64 520, !6, i64 528, !6, i64 536, !6, i64 544, !6, i64 552, !6, i64 560, !6, i64 568, !6, i64 576, !6, i64 584, !6, i64 592, !6, i64 600, !14, i64 608, !14, i64 616, !14, i64 624, !14, i64 632, !14, i64 640, !14, i64 648, !14, i64 656, !7, i64 664, !18, i64 994, !18, i64 996, !14, i64 1000, !23, i64 1008, !14, i64 1096, !14, i64 1104, !18, i64 1112, !22, i64 1120, !22, i64 1128, !22, i64 1136, !22, i64 1144}
!17 = !{!"", !6, i64 0, !18, i64 8, !10, i64 12, !10, i64 16, !6, i64 24, !6, i64 32, !10, i64 40, !6, i64 48, !6, i64 56, !14, i64 64, !14, i64 72, !14, i64 80, !19, i64 88, !14, i64 104, !14, i64 112, !14, i64 120, !14, i64 128, !10, i64 136, !10, i64 140, !14, i64 144, !14, i64 152, !6, i64 160, !14, i64 168, !14, i64 176, !14, i64 184, !14, i64 192, !14, i64 200, !20, i64 208, !14, i64 232, !6, i64 240, !7, i64 248, !6, i64 352, !6, i64 360, !6, i64 368, !6, i64 376, !10, i64 384, !10, i64 388, !10, i64 392}
!18 = !{!"short", !7, i64 0}
!19 = !{!"", !10, i64 0, !14, i64 8}
!20 = !{!"", !10, i64 0, !14, i64 8, !14, i64 16}
!21 = !{!"", !22, i64 0, !22, i64 8, !22, i64 16, !6, i64 24, !18, i64 32, !14, i64 40}
!22 = !{!"long", !7, i64 0}
!23 = !{!"", !14, i64 0, !14, i64 8, !14, i64 16, !14, i64 24, !22, i64 32, !22, i64 40, !22, i64 48, !22, i64 56, !18, i64 64, !18, i64 66, !14, i64 72, !14, i64 80}
!24 = !{!16, !6, i64 464}
!25 = distinct !{!25, !12}
!26 = !{!16, !6, i64 552}
!27 = distinct !{!27, !12}
!28 = !{!16, !6, i64 544}
!29 = distinct !{!29, !12}
!30 = !{!16, !14, i64 456}
!31 = !{!16, !6, i64 520}
!32 = distinct !{!32, !12}
!33 = distinct !{!33, !12}
!34 = !{!16, !18, i64 504}
!35 = !{!16, !18, i64 994}
!36 = !{!16, !18, i64 1112}


; 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.9 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.10 = external hidden unnamed_addr constant [46 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.12 = external hidden unnamed_addr constant [12 x i8], align 1
@.str.13 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.14 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.15 = external hidden unnamed_addr constant [60 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.17 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [5 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [54 x i8], align 1
@.str.20 = external hidden unnamed_addr constant [20 x i8], align 1
@.str.21 = external hidden unnamed_addr constant [56 x i8], align 1
@.str.22 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.23 = external hidden unnamed_addr constant [16 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [52 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [51 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.27 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [59 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [50 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
declare hidden void @ERRORMESSAGE(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

; Function Attrs: nounwind uwtable
define dso_local void @cmaes_resume_distribution(ptr noundef %0, ptr noundef %1) local_unnamed_addr #1 {
  %3 = alloca double, align 8
  call void @llvm.lifetime.start.p0(i64 8, ptr nonnull %3) #4
  %4 = tail call noalias ptr @fopen(ptr noundef %1, ptr noundef nonnull @.str.9)
  %5 = icmp eq ptr %4, null
  br i1 %5, label %6, label %.preheader112.outer

6:                                                ; preds = %2
  tail call void @ERRORMESSAGE(ptr noundef nonnull @.str.10, ptr noundef %1, ptr noundef nonnull @.str.11, ptr noundef null)
  br label %136

.preheader112:                                    ; preds = %.preheader112.outer, %8
  %7 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.12, ptr noundef nonnull %3) #4
  switch i32 %7, label %10 [
    i32 -1, label %13
    i32 0, label %8
  ]

8:                                                ; preds = %.preheader112
  %9 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.13) #4
  br label %.preheader112

10:                                               ; preds = %.preheader112
  %11 = icmp sgt i32 %7, 0
  %12 = zext i1 %11 to i32
  %spec.select = add nuw nsw i32 %.0.ph, %12
  br label %.preheader112.outer

.preheader112.outer:                              ; preds = %2, %10
  %.0.ph = phi i32 [ %spec.select, %10 ], [ 0, %2 ]
  br label %.preheader112

13:                                               ; preds = %.preheader112
  call void @rewind(ptr noundef %4)
  %.not205 = icmp eq i32 %.0.ph, 0
  br i1 %.not205, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %13, %21
  %.2116 = phi i32 [ %.3, %21 ], [ 0, %13 ]
  %14 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.12, ptr noundef nonnull %3) #4
  switch i32 %14, label %18 [
    i32 -1, label %15
    i32 0, label %16
  ]

15:                                               ; preds = %.lr.ph
  call void @FATAL(ptr noundef nonnull @.str.14, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %21

16:                                               ; preds = %.lr.ph
  %17 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.13) #4
  br label %21

18:                                               ; preds = %.lr.ph
  %19 = icmp sgt i32 %14, 0
  %20 = zext i1 %19 to i32
  %spec.select111 = add nsw i32 %.2116, %20
  br label %21

21:                                               ; preds = %18, %16, %15
  %.3 = phi i32 [ %.2116, %15 ], [ %.2116, %16 ], [ %spec.select111, %18 ]
  %22 = icmp slt i32 %.3, %.0.ph
  br i1 %22, label %.lr.ph, label %._crit_edge, !llvm.loop !5

._crit_edge:                                      ; preds = %21, %13
  %23 = load double, ptr %3, align 8, !tbaa !7
  %24 = getelementptr inbounds i8, ptr %0, i64 20
  %25 = load i32, ptr %24, align 4, !tbaa !11
  %26 = sitofp i32 %25 to double
  %27 = fcmp une double %23, %26
  br i1 %27, label %28, label %.preheader201

28:                                               ; preds = %._crit_edge
  call void @FATAL(ptr noundef nonnull @.str.15, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %.preheader201

.preheader201:                                    ; preds = %28, %._crit_edge
  br label %29

29:                                               ; preds = %.backedge202, %.preheader201
  %30 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.16, ptr noundef nonnull %3) #4
  switch i32 %30, label %34 [
    i32 -1, label %31
    i32 0, label %32
  ]

31:                                               ; preds = %29
  call void @FATAL(ptr noundef nonnull @.str.17, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %.backedge202

32:                                               ; preds = %29
  %33 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.13) #4
  br label %.backedge202

.backedge202:                                     ; preds = %32, %34, %31
  br label %29

34:                                               ; preds = %29
  %35 = icmp sgt i32 %30, 0
  br i1 %35, label %36, label %.backedge202

36:                                               ; preds = %34
  %37 = load double, ptr %3, align 8, !tbaa !7
  %38 = getelementptr inbounds i8, ptr %0, i64 464
  %39 = load ptr, ptr %38, align 8, !tbaa !22
  store double %37, ptr %39, align 8, !tbaa !7
  %40 = load i32, ptr %24, align 4, !tbaa !11
  %41 = icmp sgt i32 %40, 1
  br i1 %41, label %.lr.ph120, label %._crit_edge121

.lr.ph120:                                        ; preds = %36, %.lr.ph120
  %indvars.iv = phi i64 [ %indvars.iv.next, %.lr.ph120 ], [ 1, %36 ]
  %.090117 = phi i32 [ %45, %.lr.ph120 ], [ 1, %36 ]
  %42 = load ptr, ptr %38, align 8, !tbaa !22
  %43 = getelementptr inbounds double, ptr %42, i64 %indvars.iv
  %44 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.18, ptr noundef nonnull %43) #4
  %45 = add nsw i32 %44, %.090117
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %46 = load i32, ptr %24, align 4, !tbaa !11
  %47 = sext i32 %46 to i64
  %48 = icmp slt i64 %indvars.iv.next, %47
  br i1 %48, label %.lr.ph120, label %._crit_edge121, !llvm.loop !23

._crit_edge121:                                   ; preds = %.lr.ph120, %36
  %.090.lcssa = phi i32 [ 1, %36 ], [ %45, %.lr.ph120 ]
  %.lcssa115 = phi i32 [ %40, %36 ], [ %46, %.lr.ph120 ]
  %.not = icmp eq i32 %.090.lcssa, %.lcssa115
  br i1 %.not, label %.preheader197, label %49

49:                                               ; preds = %._crit_edge121
  call void @FATAL(ptr noundef nonnull @.str.19, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %.preheader197

.preheader197:                                    ; preds = %49, %._crit_edge121
  br label %50

50:                                               ; preds = %.backedge198, %.preheader197
  %51 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.20, ptr noundef nonnull %3) #4
  switch i32 %51, label %55 [
    i32 -1, label %52
    i32 0, label %53
  ]

52:                                               ; preds = %50
  call void @FATAL(ptr noundef nonnull @.str.21, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %.backedge198

53:                                               ; preds = %50
  %54 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.13) #4
  br label %.backedge198

.backedge198:                                     ; preds = %53, %55, %52
  br label %50

55:                                               ; preds = %50
  %56 = icmp sgt i32 %51, 0
  br i1 %56, label %57, label %.backedge198

57:                                               ; preds = %55
  %58 = load double, ptr %3, align 8, !tbaa !7
  %59 = getelementptr inbounds i8, ptr %0, i64 552
  %60 = load ptr, ptr %59, align 8, !tbaa !24
  store double %58, ptr %60, align 8, !tbaa !7
  %61 = load i32, ptr %24, align 4, !tbaa !11
  %62 = icmp sgt i32 %61, 1
  br i1 %62, label %.lr.ph126, label %._crit_edge127

.lr.ph126:                                        ; preds = %57, %.lr.ph126
  %indvars.iv153 = phi i64 [ %indvars.iv.next154, %.lr.ph126 ], [ 1, %57 ]
  %.191123 = phi i32 [ %66, %.lr.ph126 ], [ 1, %57 ]
  %63 = load ptr, ptr %59, align 8, !tbaa !24
  %64 = getelementptr inbounds double, ptr %63, i64 %indvars.iv153
  %65 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.18, ptr noundef nonnull %64) #4
  %66 = add nsw i32 %65, %.191123
  %indvars.iv.next154 = add nuw nsw i64 %indvars.iv153, 1
  %67 = load i32, ptr %24, align 4, !tbaa !11
  %68 = sext i32 %67 to i64
  %69 = icmp slt i64 %indvars.iv.next154, %68
  br i1 %69, label %.lr.ph126, label %._crit_edge127, !llvm.loop !25

._crit_edge127:                                   ; preds = %.lr.ph126, %57
  %.191.lcssa = phi i32 [ 1, %57 ], [ %66, %.lr.ph126 ]
  %.lcssa114 = phi i32 [ %61, %57 ], [ %67, %.lr.ph126 ]
  %.not107 = icmp eq i32 %.191.lcssa, %.lcssa114
  br i1 %.not107, label %.preheader193, label %70

70:                                               ; preds = %._crit_edge127
  call void @FATAL(ptr noundef nonnull @.str.22, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %.preheader193

.preheader193:                                    ; preds = %70, %._crit_edge127
  br label %71

71:                                               ; preds = %.backedge194, %.preheader193
  %72 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.23, ptr noundef nonnull %3) #4
  switch i32 %72, label %76 [
    i32 -1, label %73
    i32 0, label %74
  ]

73:                                               ; preds = %71
  call void @FATAL(ptr noundef nonnull @.str.24, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %.backedge194

74:                                               ; preds = %71
  %75 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.13) #4
  br label %.backedge194

.backedge194:                                     ; preds = %74, %76, %73
  br label %71

76:                                               ; preds = %71
  %77 = icmp sgt i32 %72, 0
  br i1 %77, label %78, label %.backedge194

78:                                               ; preds = %76
  %79 = load double, ptr %3, align 8, !tbaa !7
  %80 = getelementptr inbounds i8, ptr %0, i64 544
  %81 = load ptr, ptr %80, align 8, !tbaa !26
  store double %79, ptr %81, align 8, !tbaa !7
  %82 = load i32, ptr %24, align 4, !tbaa !11
  %83 = icmp sgt i32 %82, 1
  br i1 %83, label %.lr.ph133, label %._crit_edge134

.lr.ph133:                                        ; preds = %78, %.lr.ph133
  %indvars.iv156 = phi i64 [ %indvars.iv.next157, %.lr.ph133 ], [ 1, %78 ]
  %.292130 = phi i32 [ %87, %.lr.ph133 ], [ 1, %78 ]
  %84 = load ptr, ptr %80, align 8, !tbaa !26
  %85 = getelementptr inbounds double, ptr %84, i64 %indvars.iv156
  %86 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.18, ptr noundef nonnull %85) #4
  %87 = add nsw i32 %86, %.292130
  %indvars.iv.next157 = add nuw nsw i64 %indvars.iv156, 1
  %88 = load i32, ptr %24, align 4, !tbaa !11
  %89 = sext i32 %88 to i64
  %90 = icmp slt i64 %indvars.iv.next157, %89
  br i1 %90, label %.lr.ph133, label %._crit_edge134, !llvm.loop !27

._crit_edge134:                                   ; preds = %.lr.ph133, %78
  %.292.lcssa = phi i32 [ 1, %78 ], [ %87, %.lr.ph133 ]
  %.lcssa113 = phi i32 [ %82, %78 ], [ %88, %.lr.ph133 ]
  %.not108 = icmp eq i32 %.292.lcssa, %.lcssa113
  br i1 %.not108, label %.preheader189, label %91

91:                                               ; preds = %._crit_edge134
  call void @FATAL(ptr noundef nonnull @.str.25, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %.preheader189

.preheader189:                                    ; preds = %91, %._crit_edge134
  br label %92

92:                                               ; preds = %.backedge190, %.preheader189
  %93 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.26, ptr noundef nonnull %3) #4
  switch i32 %93, label %97 [
    i32 -1, label %94
    i32 0, label %95
  ]

94:                                               ; preds = %92
  call void @FATAL(ptr noundef nonnull @.str.27, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %.backedge190

95:                                               ; preds = %92
  %96 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.13) #4
  br label %.backedge190

.backedge190:                                     ; preds = %95, %97, %94
  br label %92

97:                                               ; preds = %92
  %98 = icmp sgt i32 %93, 0
  br i1 %98, label %99, label %.backedge190

99:                                               ; preds = %97
  %100 = load double, ptr %3, align 8, !tbaa !7
  %101 = getelementptr inbounds i8, ptr %0, i64 456
  store double %100, ptr %101, align 8, !tbaa !28
  br label %102

102:                                              ; preds = %.backedge, %99
  %103 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.28, ptr noundef nonnull %3) #4
  switch i32 %103, label %107 [
    i32 -1, label %104
    i32 0, label %105
  ]

104:                                              ; preds = %102
  call void @FATAL(ptr noundef nonnull @.str.29, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %.backedge

105:                                              ; preds = %102
  %106 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.13) #4
  br label %.backedge

.backedge:                                        ; preds = %105, %107, %104
  br label %102

107:                                              ; preds = %102
  %108 = icmp sgt i32 %103, 0
  br i1 %108, label %109, label %.backedge

109:                                              ; preds = %107
  %110 = load double, ptr %3, align 8, !tbaa !7
  %111 = getelementptr inbounds i8, ptr %0, i64 520
  %112 = load ptr, ptr %111, align 8, !tbaa !29
  %113 = load ptr, ptr %112, align 8, !tbaa !30
  store double %110, ptr %113, align 8, !tbaa !7
  %114 = load i32, ptr %24, align 4, !tbaa !11
  %115 = icmp sgt i32 %114, 1
  br i1 %115, label %.preheader, label %._crit_edge141

.preheader:                                       ; preds = %109, %123
  %indvars.iv166 = phi i64 [ %indvars.iv.next167, %123 ], [ 1, %109 ]
  %indvars.iv164 = phi i64 [ %indvars.iv.next165, %123 ], [ 2, %109 ]
  %.393139 = phi i32 [ %122, %123 ], [ 1, %109 ]
  br label %116

116:                                              ; preds = %.preheader, %116
  %indvars.iv159 = phi i64 [ 0, %.preheader ], [ %indvars.iv.next160, %116 ]
  %.494137 = phi i32 [ %.393139, %.preheader ], [ %122, %116 ]
  %117 = load ptr, ptr %111, align 8, !tbaa !29
  %118 = getelementptr inbounds ptr, ptr %117, i64 %indvars.iv166
  %119 = load ptr, ptr %118, align 8, !tbaa !30
  %120 = getelementptr inbounds double, ptr %119, i64 %indvars.iv159
  %121 = call i32 (ptr, ptr, ...) @__isoc99_fscanf(ptr noundef %4, ptr noundef nonnull @.str.18, ptr noundef %120) #4
  %122 = add nsw i32 %121, %.494137
  %indvars.iv.next160 = add nuw nsw i64 %indvars.iv159, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next160, %indvars.iv164
  br i1 %exitcond.not, label %123, label %116, !llvm.loop !31

123:                                              ; preds = %116
  %indvars.iv.next167 = add nuw nsw i64 %indvars.iv166, 1
  %124 = load i32, ptr %24, align 4, !tbaa !11
  %125 = sext i32 %124 to i64
  %126 = icmp slt i64 %indvars.iv.next167, %125
  %indvars.iv.next165 = add nuw nsw i64 %indvars.iv164, 1
  br i1 %126, label %.preheader, label %._crit_edge141, !llvm.loop !32

._crit_edge141:                                   ; preds = %123, %109
  %.393.lcssa = phi i32 [ 1, %109 ], [ %122, %123 ]
  %.lcssa = phi i32 [ %114, %109 ], [ %124, %123 ]
  %127 = add i32 %.lcssa, 1
  %128 = mul i32 %127, %.lcssa
  %129 = sdiv i32 %128, 2
  %.not109 = icmp eq i32 %.393.lcssa, %129
  br i1 %.not109, label %131, label %130

130:                                              ; preds = %._crit_edge141
  call void @FATAL(ptr noundef nonnull @.str.30, ptr noundef null, ptr noundef null, ptr noundef null)
  br label %131

131:                                              ; preds = %130, %._crit_edge141
  %132 = call i32 @fclose(ptr noundef %4)
  %133 = getelementptr inbounds i8, ptr %0, i64 504
  store i16 0, ptr %133, align 8, !tbaa !33
  %134 = getelementptr inbounds i8, ptr %0, i64 994
  store i16 0, ptr %134, align 2, !tbaa !34
  %135 = getelementptr inbounds i8, ptr %0, i64 1112
  store i16 1, ptr %135, align 8, !tbaa !35
  call void @cmaes_UpdateEigensystem(ptr noundef nonnull %0, i32 noundef 1)
  br label %136

136:                                              ; preds = %131, %6
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %3) #4
  ret void
}

; 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

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

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

; Function Attrs: nounwind uwtable
declare hidden void @FATAL(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #1

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

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

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 = { nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = distinct !{!5, !6}
!6 = !{!"llvm.loop.mustprogress"}
!7 = !{!8, !8, i64 0}
!8 = !{!"double", !9, i64 0}
!9 = !{!"omnipotent char", !10, i64 0}
!10 = !{!"Simple C/C++ TBAA"}
!11 = !{!12, !16, i64 20}
!12 = !{!"", !13, i64 0, !14, i64 8, !19, i64 408, !8, i64 456, !13, i64 464, !13, i64 472, !13, i64 480, !13, i64 488, !13, i64 496, !15, i64 504, !15, i64 506, !8, i64 512, !13, i64 520, !13, i64 528, !13, i64 536, !13, i64 544, !13, i64 552, !13, i64 560, !13, i64 568, !13, i64 576, !13, i64 584, !13, i64 592, !13, i64 600, !8, i64 608, !8, i64 616, !8, i64 624, !8, i64 632, !8, i64 640, !8, i64 648, !8, i64 656, !9, i64 664, !15, i64 994, !15, i64 996, !8, i64 1000, !21, i64 1008, !8, i64 1096, !8, i64 1104, !15, i64 1112, !20, i64 1120, !20, i64 1128, !20, i64 1136, !20, i64 1144}
!13 = !{!"any pointer", !9, i64 0}
!14 = !{!"", !13, i64 0, !15, i64 8, !16, i64 12, !16, i64 16, !13, i64 24, !13, i64 32, !16, i64 40, !13, i64 48, !13, i64 56, !8, i64 64, !8, i64 72, !8, i64 80, !17, i64 88, !8, i64 104, !8, i64 112, !8, i64 120, !8, i64 128, !16, i64 136, !16, i64 140, !8, i64 144, !8, i64 152, !13, i64 160, !8, i64 168, !8, i64 176, !8, i64 184, !8, i64 192, !8, i64 200, !18, i64 208, !8, i64 232, !13, i64 240, !9, i64 248, !13, i64 352, !13, i64 360, !13, i64 368, !13, i64 376, !16, i64 384, !16, i64 388, !16, i64 392}
!15 = !{!"short", !9, i64 0}
!16 = !{!"int", !9, i64 0}
!17 = !{!"", !16, i64 0, !8, i64 8}
!18 = !{!"", !16, i64 0, !8, i64 8, !8, i64 16}
!19 = !{!"", !20, i64 0, !20, i64 8, !20, i64 16, !13, i64 24, !15, i64 32, !8, i64 40}
!20 = !{!"long", !9, i64 0}
!21 = !{!"", !8, i64 0, !8, i64 8, !8, i64 16, !8, i64 24, !20, i64 32, !20, i64 40, !20, i64 48, !20, i64 56, !15, i64 64, !15, i64 66, !8, i64 72, !8, i64 80}
!22 = !{!12, !13, i64 464}
!23 = distinct !{!23, !6}
!24 = !{!12, !13, i64 552}
!25 = distinct !{!25, !6}
!26 = !{!12, !13, i64 544}
!27 = distinct !{!27, !6}
!28 = !{!12, !8, i64 456}
!29 = !{!12, !13, i64 520}
!30 = !{!13, !13, i64 0}
!31 = distinct !{!31, !6}
!32 = distinct !{!32, !6}
!33 = !{!12, !15, i64 504}
!34 = !{!12, !15, i64 994}
!35 = !{!12, !15, i64 1112}


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