; LLVM IR from mbheinen/bpa-ipf-tsp :: cflow (post_pvcurve)

; 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.CRIT = type { i32, [60 x i8], [60 x i8], [60 x i8], [60 x i8] }

@stderr = external global ptr, align 8
@critical = external dso_local global [200 x %struct.CRIT], align 16
@pre_critical = external dso_local global [200 x %struct.CRIT], align 16
@.str.77 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [75 x i8], align 1
@__PRETTY_FUNCTION__.parse_input_file = external hidden unnamed_addr constant [51 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage_error_exit() #0

; Function Attrs: nounwind
declare i32 @fprintf(ptr noundef, ptr noundef, ...) #1

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

; Function Attrs: nounwind
declare ptr @strcpy(ptr noundef, ptr noundef) #1

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strncmp(ptr noundef, ptr noundef, i64 noundef) #3

; Function Attrs: nounwind uwtable
define dso_local i32 @parse_input_file(ptr noundef %0, ptr noundef %1, ptr noundef %2, ptr noundef %3) #0 {
  %5 = alloca ptr, align 8
  %6 = alloca ptr, align 8
  %7 = alloca ptr, align 8
  %8 = alloca ptr, align 8
  %9 = alloca i32, align 4
  %10 = alloca i32, align 4
  %11 = alloca i32, align 4
  %12 = alloca i32, align 4
  %13 = alloca i32, align 4
  %14 = alloca i32, align 4
  %15 = alloca i32, align 4
  %16 = alloca [132 x i8], align 16
  %17 = alloca [50 x ptr], align 16
  %18 = alloca ptr, align 8
  %19 = alloca [60 x i8], align 16
  store ptr %0, ptr %5, align 8, !tbaa !5
  store ptr %1, ptr %6, align 8, !tbaa !5
  store ptr %2, ptr %7, align 8, !tbaa !5
  store ptr %3, ptr %8, align 8, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 4, ptr %9) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %11) #6
  store i32 0, ptr %11, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.start.p0(i64 4, ptr %15) #6
  store i32 0, ptr %15, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 132, ptr %16) #6
  call void @llvm.lifetime.start.p0(i64 400, ptr %17) #6
  call void @llvm.lifetime.start.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.start.p0(i64 60, ptr %19) #6
  %20 = getelementptr inbounds [60 x i8], ptr %19, i64 0, i64 0
  %21 = load ptr, ptr %6, align 8, !tbaa !5
  %22 = call ptr @strcpy(ptr noundef %20, ptr noundef %21) #6
  %23 = getelementptr inbounds [60 x i8], ptr %19, i64 0, i64 0
  %24 = call i64 @strlen(ptr noundef %23) #7
  %25 = trunc i64 %24 to i32
  store i32 %25, ptr %10, align 4, !tbaa !9
  %26 = load i32, ptr %10, align 4, !tbaa !9
  %27 = sub nsw i32 %26, 1
  store i32 %27, ptr %9, align 4, !tbaa !9
  br label %28

28:                                               ; preds = %54, %4
  %29 = load i32, ptr %9, align 4, !tbaa !9
  %30 = icmp sgt i32 %29, 0
  br i1 %30, label %31, label %52

31:                                               ; preds = %28
  %32 = load i32, ptr %9, align 4, !tbaa !9
  %33 = sext i32 %32 to i64
  %34 = getelementptr inbounds [60 x i8], ptr %19, i64 0, i64 %33
  %35 = load i8, ptr %34, align 1, !tbaa !11
  %36 = sext i8 %35 to i32
  %37 = icmp ne i32 %36, 93
  br i1 %37, label %38, label %52

38:                                               ; preds = %31
  %39 = load i32, ptr %9, align 4, !tbaa !9
  %40 = sext i32 %39 to i64
  %41 = getelementptr inbounds [60 x i8], ptr %19, i64 0, i64 %40
  %42 = load i8, ptr %41, align 1, !tbaa !11
  %43 = sext i8 %42 to i32
  %44 = icmp ne i32 %43, 47
  br i1 %44, label %45, label %52

45:                                               ; preds = %38
  %46 = load i32, ptr %9, align 4, !tbaa !9
  %47 = sext i32 %46 to i64
  %48 = getelementptr inbounds [60 x i8], ptr %19, i64 0, i64 %47
  %49 = load i8, ptr %48, align 1, !tbaa !11
  %50 = sext i8 %49 to i32
  %51 = icmp ne i32 %50, 92
  br label %52

52:                                               ; preds = %45, %38, %31, %28
  %53 = phi i1 [ false, %38 ], [ false, %31 ], [ false, %28 ], [ %51, %45 ]
  br i1 %53, label %54, label %57

54:                                               ; preds = %52
  %55 = load i32, ptr %9, align 4, !tbaa !9
  %56 = add nsw i32 %55, -1
  store i32 %56, ptr %9, align 4, !tbaa !9
  br label %28, !llvm.loop !12

57:                                               ; preds = %52
  %58 = load i32, ptr %9, align 4, !tbaa !9
  %59 = sext i32 %58 to i64
  %60 = getelementptr inbounds [60 x i8], ptr %19, i64 0, i64 %59
  %61 = load i8, ptr %60, align 1, !tbaa !11
  %62 = sext i8 %61 to i32
  %63 = icmp eq i32 %62, 93
  br i1 %63, label %78, label %64

64:                                               ; preds = %57
  %65 = load i32, ptr %9, align 4, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = getelementptr inbounds [60 x i8], ptr %19, i64 0, i64 %66
  %68 = load i8, ptr %67, align 1, !tbaa !11
  %69 = sext i8 %68 to i32
  %70 = icmp eq i32 %69, 47
  br i1 %70, label %78, label %71

71:                                               ; preds = %64
  %72 = load i32, ptr %9, align 4, !tbaa !9
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [60 x i8], ptr %19, i64 0, i64 %73
  %75 = load i8, ptr %74, align 1, !tbaa !11
  %76 = sext i8 %75 to i32
  %77 = icmp eq i32 %76, 92
  br i1 %77, label %78, label %83

78:                                               ; preds = %71, %64, %57
  %79 = load i32, ptr %9, align 4, !tbaa !9
  %80 = add nsw i32 %79, 1
  store i32 %80, ptr %9, align 4, !tbaa !9
  %81 = sext i32 %80 to i64
  %82 = getelementptr inbounds [60 x i8], ptr %19, i64 0, i64 %81
  store i8 0, ptr %82, align 1, !tbaa !11
  br label %87

83:                                               ; preds = %71
  %84 = load i32, ptr %9, align 4, !tbaa !9
  %85 = sext i32 %84 to i64
  %86 = getelementptr inbounds [60 x i8], ptr %19, i64 0, i64 %85
  store i8 0, ptr %86, align 1, !tbaa !11
  br label %87

87:                                               ; preds = %83, %78
  %88 = load ptr, ptr %7, align 8, !tbaa !5
  %89 = load i32, ptr %88, align 4, !tbaa !9
  %90 = sext i32 %89 to i64
  %91 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %90
  %92 = getelementptr inbounds %struct.CRIT, ptr %91, i32 0, i32 4
  %93 = getelementptr inbounds [60 x i8], ptr %92, i64 0, i64 0
  %94 = load ptr, ptr %6, align 8, !tbaa !5
  %95 = call ptr @strcpy(ptr noundef %93, ptr noundef %94) #6
  %96 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %97 = load ptr, ptr %5, align 8, !tbaa !5
  %98 = call i32 @read_next_record(ptr noundef %96, ptr noundef %97, ptr noundef %12, ptr noundef %15)
  store i32 %98, ptr %11, align 4, !tbaa !9
  %99 = load i32, ptr %12, align 4, !tbaa !9
  %100 = icmp eq i32 %99, 0
  br i1 %100, label %101, label %105

101:                                              ; preds = %87
  %102 = load ptr, ptr @stderr, align 8, !tbaa !5
  %103 = load ptr, ptr %6, align 8, !tbaa !5
  %104 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %102, ptr noundef @.str.77, ptr noundef %103) #6
  call void @usage_error_exit()
  br label %105

105:                                              ; preds = %101, %87
  %106 = load ptr, ptr @stderr, align 8, !tbaa !5
  %107 = load ptr, ptr %6, align 8, !tbaa !5
  %108 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %109 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %106, ptr noundef @.str.78, ptr noundef %107, ptr noundef %108) #6
  store i32 0, ptr %13, align 4, !tbaa !9
  store i32 1, ptr %12, align 4, !tbaa !9
  br label %110

110:                                              ; preds = %355, %105
  %111 = load i32, ptr %12, align 4, !tbaa !9
  %112 = icmp eq i32 %111, 1
  br i1 %112, label %113, label %356

113:                                              ; preds = %110
  %114 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %115 = load ptr, ptr %5, align 8, !tbaa !5
  %116 = call i32 @read_next_record(ptr noundef %114, ptr noundef %115, ptr noundef %12, ptr noundef %15)
  store i32 %116, ptr %11, align 4, !tbaa !9
  %117 = load i32, ptr %12, align 4, !tbaa !9
  %118 = icmp eq i32 %117, 1
  br i1 %118, label %119, label %236

119:                                              ; preds = %113
  %120 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %121 = call i32 @strncmp(ptr noundef %120, ptr noundef @.str.79, i64 noundef 14) #7
  %122 = icmp eq i32 %121, 0
  br i1 %122, label %123, label %236

123:                                              ; preds = %119
  store i32 0, ptr %14, align 4, !tbaa !9
  %124 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %125 = call ptr @strstr(ptr noundef %124, ptr noundef @.str.80) #7
  store ptr %125, ptr %18, align 8, !tbaa !5
  br label %126

126:                                              ; preds = %129, %123
  %127 = load ptr, ptr %18, align 8, !tbaa !5
  %128 = icmp ne ptr %127, null
  br i1 %128, label %129, label %133

129:                                              ; preds = %126
  %130 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 32, ptr %130, align 1, !tbaa !11
  %131 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %132 = call ptr @strstr(ptr noundef %131, ptr noundef @.str.80) #7
  store ptr %132, ptr %18, align 8, !tbaa !5
  br label %126, !llvm.loop !14

133:                                              ; preds = %126
  %134 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %135 = call ptr @strstr(ptr noundef %134, ptr noundef @.str.81) #7
  store ptr %135, ptr %18, align 8, !tbaa !5
  br label %136

136:                                              ; preds = %139, %133
  %137 = load ptr, ptr %18, align 8, !tbaa !5
  %138 = icmp ne ptr %137, null
  br i1 %138, label %139, label %143

139:                                              ; preds = %136
  %140 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 32, ptr %140, align 1, !tbaa !11
  %141 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %142 = call ptr @strstr(ptr noundef %141, ptr noundef @.str.81) #7
  store ptr %142, ptr %18, align 8, !tbaa !5
  br label %136, !llvm.loop !15

143:                                              ; preds = %136
  %144 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %145 = call ptr @strtok(ptr noundef %144, ptr noundef @.str.82) #6
  store ptr %145, ptr %18, align 8, !tbaa !5
  br label %146

146:                                              ; preds = %149, %143
  %147 = load ptr, ptr %18, align 8, !tbaa !5
  %148 = icmp ne ptr %147, null
  br i1 %148, label %149, label %156

149:                                              ; preds = %146
  %150 = load ptr, ptr %18, align 8, !tbaa !5
  %151 = load i32, ptr %14, align 4, !tbaa !9
  %152 = add nsw i32 %151, 1
  store i32 %152, ptr %14, align 4, !tbaa !9
  %153 = sext i32 %151 to i64
  %154 = getelementptr inbounds [50 x ptr], ptr %17, i64 0, i64 %153
  store ptr %150, ptr %154, align 8, !tbaa !5
  %155 = call ptr @strtok(ptr noundef null, ptr noundef @.str.82) #6
  store ptr %155, ptr %18, align 8, !tbaa !5
  br label %146, !llvm.loop !16

156:                                              ; preds = %146
  %157 = load i32, ptr %14, align 4, !tbaa !9
  %158 = icmp eq i32 %157, 12
  br i1 %158, label %159, label %160

159:                                              ; preds = %156
  br label %161

160:                                              ; preds = %156
  call void @__assert_fail(ptr noundef @.str.83, ptr noundef @.str.84, i32 noundef 1039, ptr noundef @__PRETTY_FUNCTION__.parse_input_file) #8
  unreachable

161:                                              ; preds = %159
  %162 = getelementptr inbounds [50 x ptr], ptr %17, i64 0, i64 4
  %163 = load ptr, ptr %162, align 16, !tbaa !5
  %164 = call double @atof(ptr noundef %163) #7
  %165 = fptosi double %164 to i32
  %166 = load ptr, ptr %7, align 8, !tbaa !5
  %167 = load i32, ptr %166, align 4, !tbaa !9
  %168 = sext i32 %167 to i64
  %169 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %168
  %170 = getelementptr inbounds %struct.CRIT, ptr %169, i32 0, i32 0
  store i32 %165, ptr %170, align 4, !tbaa !17
  %171 = load ptr, ptr %7, align 8, !tbaa !5
  %172 = load i32, ptr %171, align 4, !tbaa !9
  %173 = sext i32 %172 to i64
  %174 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %173
  %175 = getelementptr inbounds %struct.CRIT, ptr %174, i32 0, i32 1
  %176 = getelementptr inbounds [60 x i8], ptr %175, i64 0, i64 0
  %177 = getelementptr inbounds [60 x i8], ptr %19, i64 0, i64 0
  %178 = call ptr @strcpy(ptr noundef %176, ptr noundef %177) #6
  %179 = load ptr, ptr %7, align 8, !tbaa !5
  %180 = load i32, ptr %179, align 4, !tbaa !9
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %181
  %183 = getelementptr inbounds %struct.CRIT, ptr %182, i32 0, i32 1
  %184 = getelementptr inbounds [60 x i8], ptr %183, i64 0, i64 0
  %185 = load i32, ptr %14, align 4, !tbaa !9
  %186 = sub nsw i32 %185, 1
  %187 = sext i32 %186 to i64
  %188 = getelementptr inbounds [50 x ptr], ptr %17, i64 0, i64 %187
  %189 = load ptr, ptr %188, align 8, !tbaa !5
  %190 = call ptr @strcat(ptr noundef %184, ptr noundef %189) #6
  %191 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %192 = load ptr, ptr %5, align 8, !tbaa !5
  %193 = call i32 @read_next_record(ptr noundef %191, ptr noundef %192, ptr noundef %12, ptr noundef %15)
  store i32 %193, ptr %11, align 4, !tbaa !9
  %194 = load i32, ptr %12, align 4, !tbaa !9
  %195 = icmp eq i32 %194, 0
  br i1 %195, label %196, label %200

196:                                              ; preds = %161
  %197 = load ptr, ptr @stderr, align 8, !tbaa !5
  %198 = load ptr, ptr %6, align 8, !tbaa !5
  %199 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %197, ptr noundef @.str.85, ptr noundef %198) #6
  call void @usage_error_exit()
  br label %235

200:                                              ; preds = %161
  %201 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %202 = call ptr @strtok(ptr noundef %201, ptr noundef @.str.82) #6
  store ptr %202, ptr %18, align 8, !tbaa !5
  br label %203

203:                                              ; preds = %206, %200
  %204 = load ptr, ptr %18, align 8, !tbaa !5
  %205 = icmp ne ptr %204, null
  br i1 %205, label %206, label %213

206:                                              ; preds = %203
  %207 = load ptr, ptr %18, align 8, !tbaa !5
  %208 = load i32, ptr %14, align 4, !tbaa !9
  %209 = add nsw i32 %208, 1
  store i32 %209, ptr %14, align 4, !tbaa !9
  %210 = sext i32 %208 to i64
  %211 = getelementptr inbounds [50 x ptr], ptr %17, i64 0, i64 %210
  store ptr %207, ptr %211, align 8, !tbaa !5
  %212 = call ptr @strtok(ptr noundef null, ptr noundef @.str.82) #6
  store ptr %212, ptr %18, align 8, !tbaa !5
  br label %203, !llvm.loop !19

213:                                              ; preds = %203
  %214 = load ptr, ptr %7, align 8, !tbaa !5
  %215 = load i32, ptr %214, align 4, !tbaa !9
  %216 = sext i32 %215 to i64
  %217 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %216
  %218 = getelementptr inbounds %struct.CRIT, ptr %217, i32 0, i32 2
  %219 = getelementptr inbounds [60 x i8], ptr %218, i64 0, i64 0
  %220 = getelementptr inbounds [50 x ptr], ptr %17, i64 0, i64 12
  %221 = load ptr, ptr %220, align 16, !tbaa !5
  %222 = call ptr @strcpy(ptr noundef %219, ptr noundef %221) #6
  %223 = load ptr, ptr %7, align 8, !tbaa !5
  %224 = load i32, ptr %223, align 4, !tbaa !9
  %225 = sext i32 %224 to i64
  %226 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %225
  %227 = getelementptr inbounds %struct.CRIT, ptr %226, i32 0, i32 3
  %228 = getelementptr inbounds [60 x i8], ptr %227, i64 0, i64 0
  %229 = getelementptr inbounds [50 x ptr], ptr %17, i64 0, i64 14
  %230 = load ptr, ptr %229, align 16, !tbaa !5
  %231 = call ptr @strcpy(ptr noundef %228, ptr noundef %230) #6
  %232 = load ptr, ptr %7, align 8, !tbaa !5
  %233 = load i32, ptr %232, align 4, !tbaa !9
  %234 = add nsw i32 %233, 1
  store i32 %234, ptr %232, align 4, !tbaa !9
  br label %235

235:                                              ; preds = %213, %196
  br label %355

236:                                              ; preds = %119, %113
  %237 = load i32, ptr %12, align 4, !tbaa !9
  %238 = icmp eq i32 %237, 1
  br i1 %238, label %239, label %354

239:                                              ; preds = %236
  %240 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %241 = call i32 @strncmp(ptr noundef %240, ptr noundef @.str.86, i64 noundef 25) #7
  %242 = icmp eq i32 %241, 0
  br i1 %242, label %243, label %354

243:                                              ; preds = %239
  store i32 0, ptr %14, align 4, !tbaa !9
  %244 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %245 = call ptr @strstr(ptr noundef %244, ptr noundef @.str.80) #7
  store ptr %245, ptr %18, align 8, !tbaa !5
  br label %246

246:                                              ; preds = %249, %243
  %247 = load ptr, ptr %18, align 8, !tbaa !5
  %248 = icmp ne ptr %247, null
  br i1 %248, label %249, label %253

249:                                              ; preds = %246
  %250 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 32, ptr %250, align 1, !tbaa !11
  %251 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %252 = call ptr @strstr(ptr noundef %251, ptr noundef @.str.80) #7
  store ptr %252, ptr %18, align 8, !tbaa !5
  br label %246, !llvm.loop !20

253:                                              ; preds = %246
  %254 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %255 = call ptr @strstr(ptr noundef %254, ptr noundef @.str.81) #7
  store ptr %255, ptr %18, align 8, !tbaa !5
  br label %256

256:                                              ; preds = %259, %253
  %257 = load ptr, ptr %18, align 8, !tbaa !5
  %258 = icmp ne ptr %257, null
  br i1 %258, label %259, label %263

259:                                              ; preds = %256
  %260 = load ptr, ptr %18, align 8, !tbaa !5
  store i8 32, ptr %260, align 1, !tbaa !11
  %261 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %262 = call ptr @strstr(ptr noundef %261, ptr noundef @.str.81) #7
  store ptr %262, ptr %18, align 8, !tbaa !5
  br label %256, !llvm.loop !21

263:                                              ; preds = %256
  %264 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %265 = call ptr @strtok(ptr noundef %264, ptr noundef @.str.82) #6
  store ptr %265, ptr %18, align 8, !tbaa !5
  br label %266

266:                                              ; preds = %269, %263
  %267 = load ptr, ptr %18, align 8, !tbaa !5
  %268 = icmp ne ptr %267, null
  br i1 %268, label %269, label %276

269:                                              ; preds = %266
  %270 = load ptr, ptr %18, align 8, !tbaa !5
  %271 = load i32, ptr %14, align 4, !tbaa !9
  %272 = add nsw i32 %271, 1
  store i32 %272, ptr %14, align 4, !tbaa !9
  %273 = sext i32 %271 to i64
  %274 = getelementptr inbounds [50 x ptr], ptr %17, i64 0, i64 %273
  store ptr %270, ptr %274, align 8, !tbaa !5
  %275 = call ptr @strtok(ptr noundef null, ptr noundef @.str.82) #6
  store ptr %275, ptr %18, align 8, !tbaa !5
  br label %266, !llvm.loop !22

276:                                              ; preds = %266
  %277 = load i32, ptr %14, align 4, !tbaa !9
  %278 = icmp eq i32 %277, 10
  br i1 %278, label %279, label %280

279:                                              ; preds = %276
  br label %281

280:                                              ; preds = %276
  call void @__assert_fail(ptr noundef @.str.87, ptr noundef @.str.84, i32 noundef 1076, ptr noundef @__PRETTY_FUNCTION__.parse_input_file) #8
  unreachable

281:                                              ; preds = %279
  %282 = getelementptr inbounds [50 x ptr], ptr %17, i64 0, i64 6
  %283 = load ptr, ptr %282, align 16, !tbaa !5
  %284 = call double @atof(ptr noundef %283) #7
  %285 = fptosi double %284 to i32
  %286 = load ptr, ptr %8, align 8, !tbaa !5
  %287 = load i32, ptr %286, align 4, !tbaa !9
  %288 = sext i32 %287 to i64
  %289 = getelementptr inbounds [200 x %struct.CRIT], ptr @pre_critical, i64 0, i64 %288
  %290 = getelementptr inbounds %struct.CRIT, ptr %289, i32 0, i32 0
  store i32 %285, ptr %290, align 4, !tbaa !17
  %291 = load ptr, ptr %8, align 8, !tbaa !5
  %292 = load i32, ptr %291, align 4, !tbaa !9
  %293 = sext i32 %292 to i64
  %294 = getelementptr inbounds [200 x %struct.CRIT], ptr @pre_critical, i64 0, i64 %293
  %295 = getelementptr inbounds %struct.CRIT, ptr %294, i32 0, i32 1
  %296 = getelementptr inbounds [60 x i8], ptr %295, i64 0, i64 0
  %297 = getelementptr inbounds [60 x i8], ptr %19, i64 0, i64 0
  %298 = call ptr @strcpy(ptr noundef %296, ptr noundef %297) #6
  %299 = load ptr, ptr %8, align 8, !tbaa !5
  %300 = load i32, ptr %299, align 4, !tbaa !9
  %301 = sext i32 %300 to i64
  %302 = getelementptr inbounds [200 x %struct.CRIT], ptr @pre_critical, i64 0, i64 %301
  %303 = getelementptr inbounds %struct.CRIT, ptr %302, i32 0, i32 1
  %304 = getelementptr inbounds [60 x i8], ptr %303, i64 0, i64 0
  %305 = load i32, ptr %14, align 4, !tbaa !9
  %306 = sub nsw i32 %305, 1
  %307 = sext i32 %306 to i64
  %308 = getelementptr inbounds [50 x ptr], ptr %17, i64 0, i64 %307
  %309 = load ptr, ptr %308, align 8, !tbaa !5
  %310 = call ptr @strcat(ptr noundef %304, ptr noundef %309) #6
  %311 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %312 = load ptr, ptr %5, align 8, !tbaa !5
  %313 = call i32 @read_next_record(ptr noundef %311, ptr noundef %312, ptr noundef %12, ptr noundef %15)
  store i32 %313, ptr %11, align 4, !tbaa !9
  %314 = load i32, ptr %12, align 4, !tbaa !9
  %315 = icmp eq i32 %314, 0
  br i1 %315, label %316, label %320

316:                                              ; preds = %281
  %317 = load ptr, ptr @stderr, align 8, !tbaa !5
  %318 = load ptr, ptr %6, align 8, !tbaa !5
  %319 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %317, ptr noundef @.str.85, ptr noundef %318) #6
  call void @usage_error_exit()
  br label %353

320:                                              ; preds = %281
  %321 = getelementptr inbounds [132 x i8], ptr %16, i64 0, i64 0
  %322 = call ptr @strtok(ptr noundef %321, ptr noundef @.str.82) #6
  store ptr %322, ptr %18, align 8, !tbaa !5
  br label %323

323:                                              ; preds = %326, %320
  %324 = load ptr, ptr %18, align 8, !tbaa !5
  %325 = icmp ne ptr %324, null
  br i1 %325, label %326, label %333

326:                                              ; preds = %323
  %327 = load ptr, ptr %18, align 8, !tbaa !5
  %328 = load i32, ptr %14, align 4, !tbaa !9
  %329 = add nsw i32 %328, 1
  store i32 %329, ptr %14, align 4, !tbaa !9
  %330 = sext i32 %328 to i64
  %331 = getelementptr inbounds [50 x ptr], ptr %17, i64 0, i64 %330
  store ptr %327, ptr %331, align 8, !tbaa !5
  %332 = call ptr @strtok(ptr noundef null, ptr noundef @.str.82) #6
  store ptr %332, ptr %18, align 8, !tbaa !5
  br label %323, !llvm.loop !23

333:                                              ; preds = %323
  %334 = load ptr, ptr %8, align 8, !tbaa !5
  %335 = load i32, ptr %334, align 4, !tbaa !9
  %336 = sext i32 %335 to i64
  %337 = getelementptr inbounds [200 x %struct.CRIT], ptr @pre_critical, i64 0, i64 %336
  %338 = getelementptr inbounds %struct.CRIT, ptr %337, i32 0, i32 2
  %339 = getelementptr inbounds [60 x i8], ptr %338, i64 0, i64 0
  %340 = getelementptr inbounds [50 x ptr], ptr %17, i64 0, i64 10
  %341 = load ptr, ptr %340, align 16, !tbaa !5
  %342 = call ptr @strcpy(ptr noundef %339, ptr noundef %341) #6
  %343 = load ptr, ptr %8, align 8, !tbaa !5
  %344 = load i32, ptr %343, align 4, !tbaa !9
  %345 = sext i32 %344 to i64
  %346 = getelementptr inbounds [200 x %struct.CRIT], ptr @pre_critical, i64 0, i64 %345
  %347 = getelementptr inbounds %struct.CRIT, ptr %346, i32 0, i32 3
  %348 = getelementptr inbounds [60 x i8], ptr %347, i64 0, i64 0
  %349 = call ptr @strcpy(ptr noundef %348, ptr noundef @.str.88) #6
  %350 = load ptr, ptr %8, align 8, !tbaa !5
  %351 = load i32, ptr %350, align 4, !tbaa !9
  %352 = add nsw i32 %351, 1
  store i32 %352, ptr %350, align 4, !tbaa !9
  br label %353

353:                                              ; preds = %333, %316
  br label %354

354:                                              ; preds = %353, %239, %236
  br label %355

355:                                              ; preds = %354, %235
  br label %110, !llvm.loop !24

356:                                              ; preds = %110
  call void @llvm.lifetime.end.p0(i64 60, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 400, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 132, ptr %16) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %15) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %14) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %13) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %12) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %11) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %10) #6
  call void @llvm.lifetime.end.p0(i64 4, ptr %9) #6
  ret i32 0
}

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strstr(ptr noundef, ptr noundef) #3

; Function Attrs: nounwind
declare ptr @strcat(ptr noundef, ptr noundef) #1

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

; Function Attrs: nounwind willreturn memory(read)
declare i64 @strlen(ptr noundef) #3

; Function Attrs: inlinehint nounwind willreturn memory(read) uwtable
declare double @atof(ptr noundef nonnull) #4

; Function Attrs: nounwind uwtable
declare dso_local i32 @read_next_record(ptr noundef, ptr noundef, ptr noundef, ptr noundef) #0

; Function Attrs: nounwind
declare ptr @strtok(ptr noundef, ptr noundef) #1

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) #5

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


; 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.CRIT = type { i32, [60 x i8], [60 x i8], [60 x i8], [60 x i8] }

@stderr = external local_unnamed_addr global ptr, align 8
@critical = external dso_local global [200 x %struct.CRIT], align 16
@pre_critical = external dso_local global [200 x %struct.CRIT], align 16
@.str.77 = external hidden unnamed_addr constant [29 x i8], align 1
@.str.78 = external hidden unnamed_addr constant [23 x i8], align 1
@.str.79 = external hidden unnamed_addr constant [15 x i8], align 1
@.str.80 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.81 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.82 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.83 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.84 = external hidden unnamed_addr constant [75 x i8], align 1
@__PRETTY_FUNCTION__.parse_input_file = external hidden unnamed_addr constant [51 x i8], align 1
@.str.85 = external hidden unnamed_addr constant [43 x i8], align 1
@.str.86 = external hidden unnamed_addr constant [26 x i8], align 1
@.str.87 = external hidden unnamed_addr constant [11 x i8], align 1
@.str.88 = external hidden unnamed_addr constant [18 x i8], align 1

; Function Attrs: nounwind uwtable
declare dso_local void @usage_error_exit() local_unnamed_addr #0

; Function Attrs: nofree nounwind
declare noundef i32 @fprintf(ptr nocapture noundef, ptr nocapture noundef readonly, ...) local_unnamed_addr #1

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcpy(ptr noalias noundef returned writeonly, ptr noalias nocapture noundef readonly) local_unnamed_addr #3

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i32 @strncmp(ptr nocapture noundef, ptr nocapture noundef, i64 noundef) local_unnamed_addr #4

; Function Attrs: nounwind uwtable
define dso_local noundef i32 @parse_input_file(ptr noundef %0, ptr noundef %1, ptr nocapture noundef %2, ptr nocapture noundef %3) local_unnamed_addr #0 {
  %5 = alloca i32, align 4
  %6 = alloca i32, align 4
  %7 = alloca [132 x i8], align 16
  %8 = alloca [50 x ptr], align 16
  %9 = alloca [60 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %5) #9
  call void @llvm.lifetime.start.p0(i64 4, ptr nonnull %6) #9
  store i32 0, ptr %6, align 4, !tbaa !5
  call void @llvm.lifetime.start.p0(i64 132, ptr nonnull %7) #9
  call void @llvm.lifetime.start.p0(i64 400, ptr nonnull %8) #9
  call void @llvm.lifetime.start.p0(i64 60, ptr nonnull %9) #9
  %10 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %9, ptr noundef nonnull dereferenceable(1) %1) #9
  %11 = call i64 @strlen(ptr noundef nonnull dereferenceable(1) %9) #10
  %12 = trunc i64 %11 to i32
  %13 = and i64 %11, 4294967295
  %smin = call i32 @llvm.smin.i32(i32 %12, i32 1)
  %14 = add i32 %smin, -1
  br label %15

15:                                               ; preds = %18, %4
  %indvars.iv = phi i64 [ %indvars.iv.next, %18 ], [ %13, %4 ]
  %16 = trunc nuw i64 %indvars.iv to i32
  %17 = icmp sgt i32 %16, 1
  br i1 %17, label %18, label %.critedge

18:                                               ; preds = %15
  %indvars.iv.next = add nsw i64 %indvars.iv, -1
  %19 = and i64 %indvars.iv.next, 4294967295
  %20 = getelementptr inbounds [60 x i8], ptr %9, i64 0, i64 %19
  %21 = load i8, ptr %20, align 1, !tbaa !9
  switch i8 %21, label %15 [
    i8 93, label %.critedge.split.loop.exit
    i8 47, label %.critedge.split.loop.exit
    i8 92, label %.critedge.split.loop.exit
  ], !llvm.loop !10

.critedge.split.loop.exit:                        ; preds = %18, %18, %18
  %indvars.le = trunc i64 %indvars.iv.next to i32
  br label %.critedge

.critedge:                                        ; preds = %15, %.critedge.split.loop.exit
  %.061.in.lcssa = phi i32 [ %16, %.critedge.split.loop.exit ], [ %smin, %15 ]
  %.061.lcssa = phi i32 [ %indvars.le, %.critedge.split.loop.exit ], [ %14, %15 ]
  %22 = sext i32 %.061.lcssa to i64
  %23 = getelementptr inbounds [60 x i8], ptr %9, i64 0, i64 %22
  %24 = load i8, ptr %23, align 1, !tbaa !9
  switch i8 %24, label %28 [
    i8 93, label %25
    i8 47, label %25
    i8 92, label %25
  ]

25:                                               ; preds = %.critedge, %.critedge, %.critedge
  %26 = sext i32 %.061.in.lcssa to i64
  %27 = getelementptr inbounds [60 x i8], ptr %9, i64 0, i64 %26
  br label %28

28:                                               ; preds = %.critedge, %25
  %.sink = phi ptr [ %27, %25 ], [ %23, %.critedge ]
  store i8 0, ptr %.sink, align 1, !tbaa !9
  %29 = load i32, ptr %2, align 4, !tbaa !5
  %30 = sext i32 %29 to i64
  %31 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %30, i32 4
  %32 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %31, ptr noundef nonnull dereferenceable(1) %1) #9
  %33 = call i32 @read_next_record(ptr noundef nonnull %7, ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %34 = load i32, ptr %5, align 4, !tbaa !5
  %35 = icmp eq i32 %34, 0
  br i1 %35, label %36, label %39

36:                                               ; preds = %28
  %37 = load ptr, ptr @stderr, align 8, !tbaa !12
  %38 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %37, ptr noundef nonnull @.str.77, ptr noundef %1) #11
  call void @usage_error_exit()
  br label %39

39:                                               ; preds = %36, %28
  %40 = load ptr, ptr @stderr, align 8, !tbaa !12
  %41 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %40, ptr noundef nonnull @.str.78, ptr noundef %1, ptr noundef nonnull %7) #11
  store i32 1, ptr %5, align 4, !tbaa !5
  %42 = getelementptr inbounds i8, ptr %8, i64 48
  %43 = getelementptr inbounds i8, ptr %8, i64 72
  %44 = getelementptr inbounds i8, ptr %8, i64 80
  %45 = getelementptr inbounds i8, ptr %8, i64 32
  %46 = getelementptr inbounds i8, ptr %8, i64 88
  %47 = getelementptr inbounds i8, ptr %8, i64 96
  %48 = getelementptr inbounds i8, ptr %8, i64 112
  br label %49

49:                                               ; preds = %39, %152
  %50 = call i32 @read_next_record(ptr noundef nonnull %7, ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %51 = load i32, ptr %5, align 4, !tbaa !5
  %52 = icmp eq i32 %51, 1
  br i1 %52, label %53, label %.thread

53:                                               ; preds = %49
  %54 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.79, i64 noundef 14) #10
  %55 = icmp eq i32 %54, 0
  br i1 %55, label %56, label %103

56:                                               ; preds = %53
  %57 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.80) #10
  %.not7093 = icmp eq ptr %57, null
  br i1 %.not7093, label %._crit_edge97, label %.lr.ph96

.lr.ph96:                                         ; preds = %56, %.lr.ph96
  %.094 = phi ptr [ %58, %.lr.ph96 ], [ %57, %56 ]
  store i8 32, ptr %.094, align 1, !tbaa !9
  %58 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.80) #10
  %.not70 = icmp eq ptr %58, null
  br i1 %.not70, label %._crit_edge97, label %.lr.ph96, !llvm.loop !14

._crit_edge97:                                    ; preds = %.lr.ph96, %56
  %59 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.81) #10
  %.not7198 = icmp eq ptr %59, null
  br i1 %.not7198, label %._crit_edge102, label %.lr.ph101

.lr.ph101:                                        ; preds = %._crit_edge97, %.lr.ph101
  %.199 = phi ptr [ %60, %.lr.ph101 ], [ %59, %._crit_edge97 ]
  store i8 32, ptr %.199, align 1, !tbaa !9
  %60 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.81) #10
  %.not71 = icmp eq ptr %60, null
  br i1 %.not71, label %._crit_edge102, label %.lr.ph101, !llvm.loop !15

._crit_edge102:                                   ; preds = %.lr.ph101, %._crit_edge97
  %61 = call ptr @strtok(ptr noundef nonnull %7, ptr noundef nonnull @.str.82) #9
  %.not72103 = icmp eq ptr %61, null
  br i1 %.not72103, label %._crit_edge108.thread, label %.lr.ph107

.lr.ph107:                                        ; preds = %._crit_edge102, %.lr.ph107
  %indvars.iv126 = phi i64 [ %indvars.iv.next127, %.lr.ph107 ], [ 0, %._crit_edge102 ]
  %.2105 = phi ptr [ %63, %.lr.ph107 ], [ %61, %._crit_edge102 ]
  %indvars.iv.next127 = add nuw nsw i64 %indvars.iv126, 1
  %62 = getelementptr inbounds [50 x ptr], ptr %8, i64 0, i64 %indvars.iv126
  store ptr %.2105, ptr %62, align 8, !tbaa !12
  %63 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.82) #9
  %.not72 = icmp eq ptr %63, null
  br i1 %.not72, label %._crit_edge108, label %.lr.ph107, !llvm.loop !16

._crit_edge108:                                   ; preds = %.lr.ph107
  %64 = icmp eq i64 %indvars.iv.next127, 12
  br i1 %64, label %65, label %._crit_edge108.thread

._crit_edge108.thread:                            ; preds = %._crit_edge102, %._crit_edge108
  call void @__assert_fail(ptr noundef nonnull @.str.83, ptr noundef nonnull @.str.84, i32 noundef 1039, ptr noundef nonnull @__PRETTY_FUNCTION__.parse_input_file) #12
  unreachable

65:                                               ; preds = %._crit_edge108
  %66 = load ptr, ptr %45, align 16, !tbaa !12
  %67 = call double @atof(ptr noundef %66) #10
  %68 = fptosi double %67 to i32
  %69 = load i32, ptr %2, align 4, !tbaa !5
  %70 = sext i32 %69 to i64
  %71 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %70
  store i32 %68, ptr %71, align 4, !tbaa !17
  %72 = load i32, ptr %2, align 4, !tbaa !5
  %73 = sext i32 %72 to i64
  %74 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %73, i32 1
  %75 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %74, ptr noundef nonnull dereferenceable(1) %9) #9
  %76 = load i32, ptr %2, align 4, !tbaa !5
  %77 = sext i32 %76 to i64
  %78 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %77, i32 1
  %79 = load ptr, ptr %46, align 8, !tbaa !12
  %80 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %78, ptr noundef nonnull dereferenceable(1) %79) #9
  %81 = call i32 @read_next_record(ptr noundef nonnull %7, ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %82 = load i32, ptr %5, align 4, !tbaa !5
  %83 = icmp eq i32 %82, 0
  br i1 %83, label %84, label %87

84:                                               ; preds = %65
  %85 = load ptr, ptr @stderr, align 8, !tbaa !12
  %86 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %85, ptr noundef nonnull @.str.85, ptr noundef %1) #11
  call void @usage_error_exit()
  br label %152

87:                                               ; preds = %65
  %88 = call ptr @strtok(ptr noundef nonnull %7, ptr noundef nonnull @.str.82) #9
  %.not73110 = icmp eq ptr %88, null
  br i1 %.not73110, label %._crit_edge115, label %.lr.ph114

.lr.ph114:                                        ; preds = %87, %.lr.ph114
  %indvars.iv130 = phi i64 [ %indvars.iv.next131, %.lr.ph114 ], [ 12, %87 ]
  %.3112 = phi ptr [ %90, %.lr.ph114 ], [ %88, %87 ]
  %indvars.iv.next131 = add nuw nsw i64 %indvars.iv130, 1
  %89 = getelementptr inbounds [50 x ptr], ptr %8, i64 0, i64 %indvars.iv130
  store ptr %.3112, ptr %89, align 8, !tbaa !12
  %90 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.82) #9
  %.not73 = icmp eq ptr %90, null
  br i1 %.not73, label %._crit_edge115, label %.lr.ph114, !llvm.loop !19

._crit_edge115:                                   ; preds = %.lr.ph114, %87
  %91 = load i32, ptr %2, align 4, !tbaa !5
  %92 = sext i32 %91 to i64
  %93 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %92, i32 2
  %94 = load ptr, ptr %47, align 16, !tbaa !12
  %95 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %93, ptr noundef nonnull dereferenceable(1) %94) #9
  %96 = load i32, ptr %2, align 4, !tbaa !5
  %97 = sext i32 %96 to i64
  %98 = getelementptr inbounds [200 x %struct.CRIT], ptr @critical, i64 0, i64 %97, i32 3
  %99 = load ptr, ptr %48, align 16, !tbaa !12
  %100 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %98, ptr noundef nonnull dereferenceable(1) %99) #9
  %101 = load i32, ptr %2, align 4, !tbaa !5
  %102 = add nsw i32 %101, 1
  store i32 %102, ptr %2, align 4, !tbaa !5
  br label %152

103:                                              ; preds = %53
  %104 = call i32 @strncmp(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.86, i64 noundef 25) #10
  %105 = icmp eq i32 %104, 0
  br i1 %105, label %106, label %152

106:                                              ; preds = %103
  %107 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.80) #10
  %.not6674 = icmp eq ptr %107, null
  br i1 %.not6674, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %106, %.lr.ph
  %.475 = phi ptr [ %108, %.lr.ph ], [ %107, %106 ]
  store i8 32, ptr %.475, align 1, !tbaa !9
  %108 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.80) #10
  %.not66 = icmp eq ptr %108, null
  br i1 %.not66, label %._crit_edge, label %.lr.ph, !llvm.loop !20

._crit_edge:                                      ; preds = %.lr.ph, %106
  %109 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.81) #10
  %.not6776 = icmp eq ptr %109, null
  br i1 %.not6776, label %._crit_edge80, label %.lr.ph79

.lr.ph79:                                         ; preds = %._crit_edge, %.lr.ph79
  %.577 = phi ptr [ %110, %.lr.ph79 ], [ %109, %._crit_edge ]
  store i8 32, ptr %.577, align 1, !tbaa !9
  %110 = call ptr @strstr(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) @.str.81) #10
  %.not67 = icmp eq ptr %110, null
  br i1 %.not67, label %._crit_edge80, label %.lr.ph79, !llvm.loop !21

._crit_edge80:                                    ; preds = %.lr.ph79, %._crit_edge
  %111 = call ptr @strtok(ptr noundef nonnull %7, ptr noundef nonnull @.str.82) #9
  %.not6881 = icmp eq ptr %111, null
  br i1 %.not6881, label %._crit_edge86.thread, label %.lr.ph85

.lr.ph85:                                         ; preds = %._crit_edge80, %.lr.ph85
  %indvars.iv118 = phi i64 [ %indvars.iv.next119, %.lr.ph85 ], [ 0, %._crit_edge80 ]
  %.683 = phi ptr [ %113, %.lr.ph85 ], [ %111, %._crit_edge80 ]
  %indvars.iv.next119 = add nuw nsw i64 %indvars.iv118, 1
  %112 = getelementptr inbounds [50 x ptr], ptr %8, i64 0, i64 %indvars.iv118
  store ptr %.683, ptr %112, align 8, !tbaa !12
  %113 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.82) #9
  %.not68 = icmp eq ptr %113, null
  br i1 %.not68, label %._crit_edge86, label %.lr.ph85, !llvm.loop !22

._crit_edge86:                                    ; preds = %.lr.ph85
  %114 = icmp eq i64 %indvars.iv.next119, 10
  br i1 %114, label %115, label %._crit_edge86.thread

._crit_edge86.thread:                             ; preds = %._crit_edge80, %._crit_edge86
  call void @__assert_fail(ptr noundef nonnull @.str.87, ptr noundef nonnull @.str.84, i32 noundef 1076, ptr noundef nonnull @__PRETTY_FUNCTION__.parse_input_file) #12
  unreachable

115:                                              ; preds = %._crit_edge86
  %116 = load ptr, ptr %42, align 16, !tbaa !12
  %117 = call double @atof(ptr noundef %116) #10
  %118 = fptosi double %117 to i32
  %119 = load i32, ptr %3, align 4, !tbaa !5
  %120 = sext i32 %119 to i64
  %121 = getelementptr inbounds [200 x %struct.CRIT], ptr @pre_critical, i64 0, i64 %120
  store i32 %118, ptr %121, align 4, !tbaa !17
  %122 = load i32, ptr %3, align 4, !tbaa !5
  %123 = sext i32 %122 to i64
  %124 = getelementptr inbounds [200 x %struct.CRIT], ptr @pre_critical, i64 0, i64 %123, i32 1
  %125 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %124, ptr noundef nonnull dereferenceable(1) %9) #9
  %126 = load i32, ptr %3, align 4, !tbaa !5
  %127 = sext i32 %126 to i64
  %128 = getelementptr inbounds [200 x %struct.CRIT], ptr @pre_critical, i64 0, i64 %127, i32 1
  %129 = load ptr, ptr %43, align 8, !tbaa !12
  %130 = call ptr @strcat(ptr noundef nonnull dereferenceable(1) %128, ptr noundef nonnull dereferenceable(1) %129) #9
  %131 = call i32 @read_next_record(ptr noundef nonnull %7, ptr noundef %0, ptr noundef nonnull %5, ptr noundef nonnull %6)
  %132 = load i32, ptr %5, align 4, !tbaa !5
  %133 = icmp eq i32 %132, 0
  br i1 %133, label %134, label %137

134:                                              ; preds = %115
  %135 = load ptr, ptr @stderr, align 8, !tbaa !12
  %136 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %135, ptr noundef nonnull @.str.85, ptr noundef %1) #11
  call void @usage_error_exit()
  br label %152

137:                                              ; preds = %115
  %138 = call ptr @strtok(ptr noundef nonnull %7, ptr noundef nonnull @.str.82) #9
  %.not6987 = icmp eq ptr %138, null
  br i1 %.not6987, label %._crit_edge92, label %.lr.ph91

.lr.ph91:                                         ; preds = %137, %.lr.ph91
  %indvars.iv122 = phi i64 [ %indvars.iv.next123, %.lr.ph91 ], [ 10, %137 ]
  %.789 = phi ptr [ %140, %.lr.ph91 ], [ %138, %137 ]
  %indvars.iv.next123 = add nuw nsw i64 %indvars.iv122, 1
  %139 = getelementptr inbounds [50 x ptr], ptr %8, i64 0, i64 %indvars.iv122
  store ptr %.789, ptr %139, align 8, !tbaa !12
  %140 = call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.82) #9
  %.not69 = icmp eq ptr %140, null
  br i1 %.not69, label %._crit_edge92, label %.lr.ph91, !llvm.loop !23

._crit_edge92:                                    ; preds = %.lr.ph91, %137
  %141 = load i32, ptr %3, align 4, !tbaa !5
  %142 = sext i32 %141 to i64
  %143 = getelementptr inbounds [200 x %struct.CRIT], ptr @pre_critical, i64 0, i64 %142, i32 2
  %144 = load ptr, ptr %44, align 16, !tbaa !12
  %145 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %143, ptr noundef nonnull dereferenceable(1) %144) #9
  %146 = load i32, ptr %3, align 4, !tbaa !5
  %147 = sext i32 %146 to i64
  %148 = getelementptr inbounds [200 x %struct.CRIT], ptr @pre_critical, i64 0, i64 %147, i32 3
  %149 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %148, ptr noundef nonnull dereferenceable(1) @.str.88) #9
  %150 = load i32, ptr %3, align 4, !tbaa !5
  %151 = add nsw i32 %150, 1
  store i32 %151, ptr %3, align 4, !tbaa !5
  br label %152

152:                                              ; preds = %103, %._crit_edge92, %134, %84, %._crit_edge115
  %.pr.pr = load i32, ptr %5, align 4, !tbaa !5
  %153 = icmp eq i32 %.pr.pr, 1
  br i1 %153, label %49, label %.thread, !llvm.loop !24

.thread:                                          ; preds = %49, %152
  call void @llvm.lifetime.end.p0(i64 60, ptr nonnull %9) #9
  call void @llvm.lifetime.end.p0(i64 400, ptr nonnull %8) #9
  call void @llvm.lifetime.end.p0(i64 132, ptr nonnull %7) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %6) #9
  call void @llvm.lifetime.end.p0(i64 4, ptr nonnull %5) #9
  ret i32 0
}

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare ptr @strstr(ptr noundef, ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: readwrite)
declare ptr @strcat(ptr noalias noundef returned, ptr noalias nocapture noundef readonly) local_unnamed_addr #3

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

; Function Attrs: mustprogress nofree nounwind willreturn memory(argmem: read)
declare i64 @strlen(ptr nocapture noundef) local_unnamed_addr #4

; Function Attrs: inlinehint mustprogress nofree nounwind willreturn memory(read) uwtable
declare double @atof(ptr nocapture noundef nonnull) local_unnamed_addr #5

; Function Attrs: nounwind uwtable
declare dso_local i32 @read_next_record(ptr noundef, ptr noundef, ptr noundef, ptr noundef) local_unnamed_addr #0

; Function Attrs: mustprogress nofree nounwind willreturn
declare ptr @strtok(ptr noundef, ptr nocapture noundef readonly) local_unnamed_addr #6

; Function Attrs: noreturn nounwind
declare void @__assert_fail(ptr noundef, ptr noundef, i32 noundef, ptr noundef) local_unnamed_addr #7

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

attributes #0 = { nounwind uwtable "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #1 = { 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 #2 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #3 = { mustprogress nofree nounwind willreturn memory(argmem: readwrite) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #4 = { mustprogress nofree nounwind willreturn memory(argmem: read) "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 = { inlinehint mustprogress nofree nounwind willreturn memory(read) 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 #6 = { mustprogress nofree nounwind willreturn "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 #7 = { noreturn 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 #8 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #9 = { nounwind }
attributes #10 = { nounwind willreturn memory(read) }
attributes #11 = { cold nounwind }
attributes #12 = { noreturn nounwind }

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

!0 = !{i32 1, !"wchar_size", i32 4}
!1 = !{i32 8, !"PIC Level", i32 2}
!2 = !{i32 7, !"PIE Level", i32 2}
!3 = !{i32 7, !"uwtable", i32 2}
!4 = !{!"clang version 19.1.0 (git@github.com:llvm/llvm-project.git a4bf6cd7cfb1a1421ba92bca9d017b49936c55e4)"}
!5 = !{!6, !6, i64 0}
!6 = !{!"int", !7, i64 0}
!7 = !{!"omnipotent char", !8, i64 0}
!8 = !{!"Simple C/C++ TBAA"}
!9 = !{!7, !7, i64 0}
!10 = distinct !{!10, !11}
!11 = !{!"llvm.loop.mustprogress"}
!12 = !{!13, !13, i64 0}
!13 = !{!"any pointer", !7, i64 0}
!14 = distinct !{!14, !11}
!15 = distinct !{!15, !11}
!16 = distinct !{!16, !11}
!17 = !{!18, !6, i64 0}
!18 = !{!"", !6, i64 0, !7, i64 4, !7, i64 64, !7, i64 124, !7, i64 184}
!19 = distinct !{!19, !11}
!20 = distinct !{!20, !11}
!21 = distinct !{!21, !11}
!22 = distinct !{!22, !11}
!23 = distinct !{!23, !11}
!24 = distinct !{!24, !11}


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