; LLVM IR from softmin/ReHLine-SVM :: liblinear (train)

; 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.problem = type { i32, i32, ptr, ptr, double }
%struct.feature_node = type { i32, double }

@stderr = external global ptr, align 8
@prob = external dso_local global %struct.problem, align 8
@x_space = external dso_local global ptr, align 8
@line = external hidden global ptr, align 8
@bias = external dso_local global double, align 8
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [26 x i8], align 1
@max_line_len = external hidden global i32, align 4
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) #0

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

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

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

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

18:                                               ; preds = %1
  %19 = load ptr, ptr @stderr, align 8, !tbaa !5
  %20 = load ptr, ptr %2, align 8, !tbaa !5
  %21 = call i32 (ptr, ptr, ...) @fprintf(ptr noundef %19, ptr noundef @.str.16, ptr noundef %20) #7
  call void @exit(i32 noundef 1) #8
  unreachable

22:                                               ; preds = %1
  store i32 0, ptr @prob, align 8, !tbaa !9
  store i64 0, ptr %6, align 8, !tbaa !13
  store i32 1024, ptr @max_line_len, align 4, !tbaa !15
  %23 = load i32, ptr @max_line_len, align 4, !tbaa !15
  %24 = sext i32 %23 to i64
  %25 = mul i64 %24, 1
  %26 = call noalias ptr @malloc(i64 noundef %25) #9
  store ptr %26, ptr @line, align 8, !tbaa !5
  br label %27

27:                                               ; preds = %48, %22
  %28 = load ptr, ptr %8, align 8, !tbaa !5
  %29 = call ptr @readline(ptr noundef %28)
  %30 = icmp ne ptr %29, null
  br i1 %30, label %31, label %53

31:                                               ; preds = %27
  call void @llvm.lifetime.start.p0(i64 8, ptr %13) #7
  %32 = load ptr, ptr @line, align 8, !tbaa !5
  %33 = call ptr @strtok(ptr noundef %32, ptr noundef @.str.17) #7
  store ptr %33, ptr %13, align 8, !tbaa !5
  br label %34

34:                                               ; preds = %45, %31
  br label %35

35:                                               ; preds = %34
  %36 = call ptr @strtok(ptr noundef null, ptr noundef @.str.17) #7
  store ptr %36, ptr %13, align 8, !tbaa !5
  %37 = load ptr, ptr %13, align 8, !tbaa !5
  %38 = icmp eq ptr %37, null
  br i1 %38, label %44, label %39

39:                                               ; preds = %35
  %40 = load ptr, ptr %13, align 8, !tbaa !5
  %41 = load i8, ptr %40, align 1, !tbaa !16
  %42 = sext i8 %41 to i32
  %43 = icmp eq i32 %42, 10
  br i1 %43, label %44, label %45

44:                                               ; preds = %39, %35
  br label %48

45:                                               ; preds = %39
  %46 = load i64, ptr %6, align 8, !tbaa !13
  %47 = add i64 %46, 1
  store i64 %47, ptr %6, align 8, !tbaa !13
  br label %34

48:                                               ; preds = %44
  %49 = load i64, ptr %6, align 8, !tbaa !13
  %50 = add i64 %49, 1
  store i64 %50, ptr %6, align 8, !tbaa !13
  %51 = load i32, ptr @prob, align 8, !tbaa !9
  %52 = add nsw i32 %51, 1
  store i32 %52, ptr @prob, align 8, !tbaa !9
  call void @llvm.lifetime.end.p0(i64 8, ptr %13) #7
  br label %27, !llvm.loop !17

53:                                               ; preds = %27
  %54 = load ptr, ptr %8, align 8, !tbaa !5
  call void @rewind(ptr noundef %54)
  %55 = load double, ptr @bias, align 8, !tbaa !19
  store double %55, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 4), align 8, !tbaa !20
  %56 = load i32, ptr @prob, align 8, !tbaa !9
  %57 = sext i32 %56 to i64
  %58 = mul i64 %57, 8
  %59 = call noalias ptr @malloc(i64 noundef %58) #9
  store ptr %59, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 2), align 8, !tbaa !21
  %60 = load i32, ptr @prob, align 8, !tbaa !9
  %61 = sext i32 %60 to i64
  %62 = mul i64 %61, 8
  %63 = call noalias ptr @malloc(i64 noundef %62) #9
  store ptr %63, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 3), align 8, !tbaa !22
  %64 = load i64, ptr %6, align 8, !tbaa !13
  %65 = load i32, ptr @prob, align 8, !tbaa !9
  %66 = sext i32 %65 to i64
  %67 = add i64 %64, %66
  %68 = mul i64 %67, 16
  %69 = call noalias ptr @malloc(i64 noundef %68) #9
  store ptr %69, ptr @x_space, align 8, !tbaa !5
  store i32 0, ptr %3, align 4, !tbaa !15
  store i64 0, ptr %7, align 8, !tbaa !13
  store i32 0, ptr %5, align 4, !tbaa !15
  br label %70

70:                                               ; preds = %215, %53
  %71 = load i32, ptr %5, align 4, !tbaa !15
  %72 = load i32, ptr @prob, align 8, !tbaa !9
  %73 = icmp slt i32 %71, %72
  br i1 %73, label %74, label %218

74:                                               ; preds = %70
  store i32 0, ptr %4, align 4, !tbaa !15
  %75 = load ptr, ptr %8, align 8, !tbaa !5
  %76 = call ptr @readline(ptr noundef %75)
  %77 = load ptr, ptr @x_space, align 8, !tbaa !5
  %78 = load i64, ptr %7, align 8, !tbaa !13
  %79 = getelementptr inbounds %struct.feature_node, ptr %77, i64 %78
  %80 = load ptr, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 3), align 8, !tbaa !22
  %81 = load i32, ptr %5, align 4, !tbaa !15
  %82 = sext i32 %81 to i64
  %83 = getelementptr inbounds ptr, ptr %80, i64 %82
  store ptr %79, ptr %83, align 8, !tbaa !5
  %84 = load ptr, ptr @line, align 8, !tbaa !5
  %85 = call ptr @strtok(ptr noundef %84, ptr noundef @.str.18) #7
  store ptr %85, ptr %12, align 8, !tbaa !5
  %86 = load ptr, ptr %12, align 8, !tbaa !5
  %87 = icmp eq ptr %86, null
  br i1 %87, label %88, label %91

88:                                               ; preds = %74
  %89 = load i32, ptr %5, align 4, !tbaa !15
  %90 = add nsw i32 %89, 1
  call void @exit_input_error(i32 noundef %90)
  br label %91

91:                                               ; preds = %88, %74
  %92 = load ptr, ptr %12, align 8, !tbaa !5
  %93 = call double @strtod(ptr noundef %92, ptr noundef %9) #7
  %94 = load ptr, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 2), align 8, !tbaa !21
  %95 = load i32, ptr %5, align 4, !tbaa !15
  %96 = sext i32 %95 to i64
  %97 = getelementptr inbounds double, ptr %94, i64 %96
  store double %93, ptr %97, align 8, !tbaa !19
  %98 = load ptr, ptr %9, align 8, !tbaa !5
  %99 = load ptr, ptr %12, align 8, !tbaa !5
  %100 = icmp eq ptr %98, %99
  br i1 %100, label %106, label %101

101:                                              ; preds = %91
  %102 = load ptr, ptr %9, align 8, !tbaa !5
  %103 = load i8, ptr %102, align 1, !tbaa !16
  %104 = sext i8 %103 to i32
  %105 = icmp ne i32 %104, 0
  br i1 %105, label %106, label %109

106:                                              ; preds = %101, %91
  %107 = load i32, ptr %5, align 4, !tbaa !15
  %108 = add nsw i32 %107, 1
  call void @exit_input_error(i32 noundef %108)
  br label %109

109:                                              ; preds = %106, %101
  br label %110

110:                                              ; preds = %190, %109
  br label %111

111:                                              ; preds = %110
  %112 = call ptr @strtok(ptr noundef null, ptr noundef @.str.19) #7
  store ptr %112, ptr %10, align 8, !tbaa !5
  %113 = call ptr @strtok(ptr noundef null, ptr noundef @.str.17) #7
  store ptr %113, ptr %11, align 8, !tbaa !5
  %114 = load ptr, ptr %11, align 8, !tbaa !5
  %115 = icmp eq ptr %114, null
  br i1 %115, label %116, label %117

116:                                              ; preds = %111
  br label %193

117:                                              ; preds = %111
  %118 = call ptr @__errno_location() #10
  store i32 0, ptr %118, align 4, !tbaa !15
  %119 = load ptr, ptr %10, align 8, !tbaa !5
  %120 = call i64 @strtol(ptr noundef %119, ptr noundef %9, i32 noundef 10) #7
  %121 = trunc i64 %120 to i32
  %122 = load ptr, ptr @x_space, align 8, !tbaa !5
  %123 = load i64, ptr %7, align 8, !tbaa !13
  %124 = getelementptr inbounds %struct.feature_node, ptr %122, i64 %123
  %125 = getelementptr inbounds %struct.feature_node, ptr %124, i32 0, i32 0
  store i32 %121, ptr %125, align 8, !tbaa !23
  %126 = load ptr, ptr %9, align 8, !tbaa !5
  %127 = load ptr, ptr %10, align 8, !tbaa !5
  %128 = icmp eq ptr %126, %127
  br i1 %128, label %146, label %129

129:                                              ; preds = %117
  %130 = call ptr @__errno_location() #10
  %131 = load i32, ptr %130, align 4, !tbaa !15
  %132 = icmp ne i32 %131, 0
  br i1 %132, label %146, label %133

133:                                              ; preds = %129
  %134 = load ptr, ptr %9, align 8, !tbaa !5
  %135 = load i8, ptr %134, align 1, !tbaa !16
  %136 = sext i8 %135 to i32
  %137 = icmp ne i32 %136, 0
  br i1 %137, label %146, label %138

138:                                              ; preds = %133
  %139 = load ptr, ptr @x_space, align 8, !tbaa !5
  %140 = load i64, ptr %7, align 8, !tbaa !13
  %141 = getelementptr inbounds %struct.feature_node, ptr %139, i64 %140
  %142 = getelementptr inbounds %struct.feature_node, ptr %141, i32 0, i32 0
  %143 = load i32, ptr %142, align 8, !tbaa !23
  %144 = load i32, ptr %4, align 4, !tbaa !15
  %145 = icmp sle i32 %143, %144
  br i1 %145, label %146, label %149

146:                                              ; preds = %138, %133, %129, %117
  %147 = load i32, ptr %5, align 4, !tbaa !15
  %148 = add nsw i32 %147, 1
  call void @exit_input_error(i32 noundef %148)
  br label %155

149:                                              ; preds = %138
  %150 = load ptr, ptr @x_space, align 8, !tbaa !5
  %151 = load i64, ptr %7, align 8, !tbaa !13
  %152 = getelementptr inbounds %struct.feature_node, ptr %150, i64 %151
  %153 = getelementptr inbounds %struct.feature_node, ptr %152, i32 0, i32 0
  %154 = load i32, ptr %153, align 8, !tbaa !23
  store i32 %154, ptr %4, align 4, !tbaa !15
  br label %155

155:                                              ; preds = %149, %146
  %156 = call ptr @__errno_location() #10
  store i32 0, ptr %156, align 4, !tbaa !15
  %157 = load ptr, ptr %11, align 8, !tbaa !5
  %158 = call double @strtod(ptr noundef %157, ptr noundef %9) #7
  %159 = load ptr, ptr @x_space, align 8, !tbaa !5
  %160 = load i64, ptr %7, align 8, !tbaa !13
  %161 = getelementptr inbounds %struct.feature_node, ptr %159, i64 %160
  %162 = getelementptr inbounds %struct.feature_node, ptr %161, i32 0, i32 1
  store double %158, ptr %162, align 8, !tbaa !25
  %163 = load ptr, ptr %9, align 8, !tbaa !5
  %164 = load ptr, ptr %11, align 8, !tbaa !5
  %165 = icmp eq ptr %163, %164
  br i1 %165, label %187, label %166

166:                                              ; preds = %155
  %167 = call ptr @__errno_location() #10
  %168 = load i32, ptr %167, align 4, !tbaa !15
  %169 = icmp ne i32 %168, 0
  br i1 %169, label %187, label %170

170:                                              ; preds = %166
  %171 = load ptr, ptr %9, align 8, !tbaa !5
  %172 = load i8, ptr %171, align 1, !tbaa !16
  %173 = sext i8 %172 to i32
  %174 = icmp ne i32 %173, 0
  br i1 %174, label %175, label %190

175:                                              ; preds = %170
  %176 = call ptr @__ctype_b_loc() #10
  %177 = load ptr, ptr %176, align 8, !tbaa !5
  %178 = load ptr, ptr %9, align 8, !tbaa !5
  %179 = load i8, ptr %178, align 1, !tbaa !16
  %180 = sext i8 %179 to i32
  %181 = sext i32 %180 to i64
  %182 = getelementptr inbounds i16, ptr %177, i64 %181
  %183 = load i16, ptr %182, align 2, !tbaa !26
  %184 = zext i16 %183 to i32
  %185 = and i32 %184, 8192
  %186 = icmp ne i32 %185, 0
  br i1 %186, label %190, label %187

187:                                              ; preds = %175, %166, %155
  %188 = load i32, ptr %5, align 4, !tbaa !15
  %189 = add nsw i32 %188, 1
  call void @exit_input_error(i32 noundef %189)
  br label %190

190:                                              ; preds = %187, %175, %170
  %191 = load i64, ptr %7, align 8, !tbaa !13
  %192 = add i64 %191, 1
  store i64 %192, ptr %7, align 8, !tbaa !13
  br label %110

193:                                              ; preds = %116
  %194 = load i32, ptr %4, align 4, !tbaa !15
  %195 = load i32, ptr %3, align 4, !tbaa !15
  %196 = icmp sgt i32 %194, %195
  br i1 %196, label %197, label %199

197:                                              ; preds = %193
  %198 = load i32, ptr %4, align 4, !tbaa !15
  store i32 %198, ptr %3, align 4, !tbaa !15
  br label %199

199:                                              ; preds = %197, %193
  %200 = load double, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 4), align 8, !tbaa !20
  %201 = fcmp oge double %200, 0.000000e+00
  br i1 %201, label %202, label %209

202:                                              ; preds = %199
  %203 = load double, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 4), align 8, !tbaa !20
  %204 = load ptr, ptr @x_space, align 8, !tbaa !5
  %205 = load i64, ptr %7, align 8, !tbaa !13
  %206 = add i64 %205, 1
  store i64 %206, ptr %7, align 8, !tbaa !13
  %207 = getelementptr inbounds %struct.feature_node, ptr %204, i64 %205
  %208 = getelementptr inbounds %struct.feature_node, ptr %207, i32 0, i32 1
  store double %203, ptr %208, align 8, !tbaa !25
  br label %209

209:                                              ; preds = %202, %199
  %210 = load ptr, ptr @x_space, align 8, !tbaa !5
  %211 = load i64, ptr %7, align 8, !tbaa !13
  %212 = add i64 %211, 1
  store i64 %212, ptr %7, align 8, !tbaa !13
  %213 = getelementptr inbounds %struct.feature_node, ptr %210, i64 %211
  %214 = getelementptr inbounds %struct.feature_node, ptr %213, i32 0, i32 0
  store i32 -1, ptr %214, align 8, !tbaa !23
  br label %215

215:                                              ; preds = %209
  %216 = load i32, ptr %5, align 4, !tbaa !15
  %217 = add nsw i32 %216, 1
  store i32 %217, ptr %5, align 4, !tbaa !15
  br label %70, !llvm.loop !28

218:                                              ; preds = %70
  %219 = load double, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 4), align 8, !tbaa !20
  %220 = fcmp oge double %219, 0.000000e+00
  br i1 %220, label %221, label %247

221:                                              ; preds = %218
  %222 = load i32, ptr %3, align 4, !tbaa !15
  %223 = add nsw i32 %222, 1
  store i32 %223, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 1), align 4, !tbaa !29
  store i32 1, ptr %5, align 4, !tbaa !15
  br label %224

224:                                              ; preds = %237, %221
  %225 = load i32, ptr %5, align 4, !tbaa !15
  %226 = load i32, ptr @prob, align 8, !tbaa !9
  %227 = icmp slt i32 %225, %226
  br i1 %227, label %228, label %240

228:                                              ; preds = %224
  %229 = load i32, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 1), align 4, !tbaa !29
  %230 = load ptr, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 3), align 8, !tbaa !22
  %231 = load i32, ptr %5, align 4, !tbaa !15
  %232 = sext i32 %231 to i64
  %233 = getelementptr inbounds ptr, ptr %230, i64 %232
  %234 = load ptr, ptr %233, align 8, !tbaa !5
  %235 = getelementptr inbounds %struct.feature_node, ptr %234, i64 -2
  %236 = getelementptr inbounds %struct.feature_node, ptr %235, i32 0, i32 0
  store i32 %229, ptr %236, align 8, !tbaa !23
  br label %237

237:                                              ; preds = %228
  %238 = load i32, ptr %5, align 4, !tbaa !15
  %239 = add nsw i32 %238, 1
  store i32 %239, ptr %5, align 4, !tbaa !15
  br label %224, !llvm.loop !30

240:                                              ; preds = %224
  %241 = load i32, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 1), align 4, !tbaa !29
  %242 = load ptr, ptr @x_space, align 8, !tbaa !5
  %243 = load i64, ptr %7, align 8, !tbaa !13
  %244 = sub i64 %243, 2
  %245 = getelementptr inbounds %struct.feature_node, ptr %242, i64 %244
  %246 = getelementptr inbounds %struct.feature_node, ptr %245, i32 0, i32 0
  store i32 %241, ptr %246, align 8, !tbaa !23
  br label %249

247:                                              ; preds = %218
  %248 = load i32, ptr %3, align 4, !tbaa !15
  store i32 %248, ptr getelementptr inbounds (%struct.problem, ptr @prob, i32 0, i32 1), align 4, !tbaa !29
  br label %249

249:                                              ; preds = %247, %240
  %250 = load ptr, ptr %8, align 8, !tbaa !5
  %251 = call i32 @fclose(ptr noundef %250)
  call void @llvm.lifetime.end.p0(i64 8, ptr %12) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %11) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %10) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %9) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %8) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %7) #7
  call void @llvm.lifetime.end.p0(i64 8, ptr %6) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %5) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %4) #7
  call void @llvm.lifetime.end.p0(i64 4, ptr %3) #7
  ret void
}

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

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

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

; Function Attrs: nounwind uwtable
declare hidden ptr @readline(ptr noundef) #1

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

declare void @rewind(ptr noundef) #5

; Function Attrs: nounwind
declare double @strtod(ptr noundef, ptr noundef) #2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__errno_location() #6

; Function Attrs: nounwind
declare i64 @strtol(ptr noundef, ptr noundef, i32 noundef) #2

; Function Attrs: nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() #6

declare i32 @fclose(ptr noundef) #5

attributes #0 = { 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 #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 = { 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 = { nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { nounwind allocsize(0) "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { "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 willreturn memory(none) "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 = { nounwind }
attributes #8 = { noreturn nounwind }
attributes #9 = { nounwind allocsize(0) }
attributes #10 = { nounwind willreturn memory(none) }

!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, !11, i64 0}
!10 = !{!"problem", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !12, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!14, !14, i64 0}
!14 = !{!"long", !7, i64 0}
!15 = !{!11, !11, i64 0}
!16 = !{!7, !7, i64 0}
!17 = distinct !{!17, !18}
!18 = !{!"llvm.loop.mustprogress"}
!19 = !{!12, !12, i64 0}
!20 = !{!10, !12, i64 24}
!21 = !{!10, !6, i64 8}
!22 = !{!10, !6, i64 16}
!23 = !{!24, !11, i64 0}
!24 = !{!"feature_node", !11, i64 0, !12, i64 8}
!25 = !{!24, !12, i64 8}
!26 = !{!27, !27, i64 0}
!27 = !{!"short", !7, i64 0}
!28 = distinct !{!28, !18}
!29 = !{!10, !11, i64 4}
!30 = distinct !{!30, !18}


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

%struct.problem = type { i32, i32, ptr, ptr, double }
%struct.feature_node = type { i32, double }

@stderr = external local_unnamed_addr global ptr, align 8
@prob = external dso_local local_unnamed_addr global %struct.problem, align 8
@x_space = external dso_local local_unnamed_addr global ptr, align 8
@line = external hidden local_unnamed_addr global ptr, align 8
@bias = external dso_local local_unnamed_addr global double, align 8
@.str.15 = external hidden unnamed_addr constant [2 x i8], align 1
@.str.16 = external hidden unnamed_addr constant [26 x i8], align 1
@max_line_len = external hidden local_unnamed_addr global i32, align 4
@.str.17 = external hidden unnamed_addr constant [3 x i8], align 1
@.str.18 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.19 = external hidden unnamed_addr constant [2 x i8], align 1

; Function Attrs: noreturn nounwind
declare void @exit(i32 noundef) local_unnamed_addr #0

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

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

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

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

5:                                                ; preds = %1
  %6 = load ptr, ptr @stderr, align 8, !tbaa !5
  %7 = tail call i32 (ptr, ptr, ...) @fprintf(ptr noundef %6, ptr noundef nonnull @.str.16, ptr noundef %0) #9
  tail call void @exit(i32 noundef 1) #10
  unreachable

8:                                                ; preds = %1
  store i32 0, ptr @prob, align 8, !tbaa !9
  store i32 1024, ptr @max_line_len, align 4, !tbaa !13
  %9 = tail call noalias dereferenceable_or_null(1024) ptr @malloc(i64 noundef 1024) #11
  store ptr %9, ptr @line, align 8, !tbaa !5
  %10 = tail call ptr @readline(ptr noundef nonnull %3)
  %.not72 = icmp eq ptr %10, null
  br i1 %.not72, label %._crit_edge76, label %.lr.ph75

.lr.ph75:                                         ; preds = %8, %._crit_edge
  %.04973 = phi i64 [ %22, %._crit_edge ], [ 0, %8 ]
  %11 = load ptr, ptr @line, align 8, !tbaa !5
  %12 = tail call ptr @strtok(ptr noundef %11, ptr noundef nonnull @.str.17) #8
  %13 = tail call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.17) #8
  %14 = icmp eq ptr %13, null
  br i1 %14, label %._crit_edge, label %.lr.ph

.lr.ph:                                           ; preds = %.lr.ph75, %18
  %15 = phi ptr [ %20, %18 ], [ %13, %.lr.ph75 ]
  %.15069 = phi i64 [ %19, %18 ], [ %.04973, %.lr.ph75 ]
  %16 = load i8, ptr %15, align 1, !tbaa !14
  %17 = icmp eq i8 %16, 10
  br i1 %17, label %._crit_edge, label %18

18:                                               ; preds = %.lr.ph
  %19 = add i64 %.15069, 1
  %20 = tail call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.17) #8
  %21 = icmp eq ptr %20, null
  br i1 %21, label %._crit_edge, label %.lr.ph

._crit_edge:                                      ; preds = %.lr.ph, %18, %.lr.ph75
  %.150.lcssa = phi i64 [ %.04973, %.lr.ph75 ], [ %19, %18 ], [ %.15069, %.lr.ph ]
  %22 = add i64 %.150.lcssa, 1
  %23 = load i32, ptr @prob, align 8, !tbaa !9
  %24 = add nsw i32 %23, 1
  store i32 %24, ptr @prob, align 8, !tbaa !9
  %25 = tail call ptr @readline(ptr noundef nonnull %3)
  %.not = icmp eq ptr %25, null
  br i1 %.not, label %._crit_edge76, label %.lr.ph75, !llvm.loop !15

._crit_edge76:                                    ; preds = %._crit_edge, %8
  %.049.lcssa = phi i64 [ 0, %8 ], [ %22, %._crit_edge ]
  tail call void @rewind(ptr noundef nonnull %3)
  %26 = load double, ptr @bias, align 8, !tbaa !17
  store double %26, ptr getelementptr inbounds (i8, ptr @prob, i64 24), align 8, !tbaa !18
  %27 = load i32, ptr @prob, align 8, !tbaa !9
  %28 = sext i32 %27 to i64
  %29 = shl nsw i64 %28, 3
  %30 = tail call noalias ptr @malloc(i64 noundef %29) #11
  store ptr %30, ptr getelementptr inbounds (i8, ptr @prob, i64 8), align 8, !tbaa !19
  %31 = tail call noalias ptr @malloc(i64 noundef %29) #11
  store ptr %31, ptr getelementptr inbounds (i8, ptr @prob, i64 16), align 8, !tbaa !20
  %32 = add i64 %.049.lcssa, %28
  %33 = shl i64 %32, 4
  %34 = tail call noalias ptr @malloc(i64 noundef %33) #11
  store ptr %34, ptr @x_space, align 8, !tbaa !5
  %35 = icmp sgt i32 %27, 0
  br i1 %35, label %.lr.ph89, label %._crit_edge90

.lr.ph89:                                         ; preds = %._crit_edge76, %108
  %indvars.iv = phi i64 [ %indvars.iv.next, %108 ], [ 0, %._crit_edge76 ]
  %.087 = phi i32 [ %spec.select, %108 ], [ 0, %._crit_edge76 ]
  %.05185 = phi i64 [ %109, %108 ], [ 0, %._crit_edge76 ]
  %36 = tail call ptr @readline(ptr noundef nonnull %3)
  %37 = load ptr, ptr @x_space, align 8, !tbaa !5
  %38 = getelementptr inbounds %struct.feature_node, ptr %37, i64 %.05185
  %39 = load ptr, ptr getelementptr inbounds (i8, ptr @prob, i64 16), align 8, !tbaa !20
  %40 = getelementptr inbounds ptr, ptr %39, i64 %indvars.iv
  store ptr %38, ptr %40, align 8, !tbaa !5
  %41 = load ptr, ptr @line, align 8, !tbaa !5
  %42 = tail call ptr @strtok(ptr noundef %41, ptr noundef nonnull @.str.18) #8
  %43 = icmp eq ptr %42, null
  br i1 %43, label %44, label %47

44:                                               ; preds = %.lr.ph89
  %45 = trunc i64 %indvars.iv to i32
  %46 = add i32 %45, 1
  tail call void @exit_input_error(i32 noundef %46)
  br label %47

47:                                               ; preds = %44, %.lr.ph89
  %48 = call double @strtod(ptr noundef %42, ptr noundef nonnull %2) #8
  %49 = load ptr, ptr getelementptr inbounds (i8, ptr @prob, i64 8), align 8, !tbaa !19
  %50 = getelementptr inbounds double, ptr %49, i64 %indvars.iv
  store double %48, ptr %50, align 8, !tbaa !17
  %51 = load ptr, ptr %2, align 8, !tbaa !5
  %52 = icmp eq ptr %51, %42
  br i1 %52, label %55, label %53

53:                                               ; preds = %47
  %54 = load i8, ptr %51, align 1, !tbaa !14
  %.not62 = icmp eq i8 %54, 0
  br i1 %.not62, label %58, label %55

55:                                               ; preds = %53, %47
  %56 = trunc i64 %indvars.iv to i32
  %57 = add i32 %56, 1
  tail call void @exit_input_error(i32 noundef %57)
  br label %58

58:                                               ; preds = %55, %53
  %59 = tail call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.19) #8
  %60 = tail call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.17) #8
  %61 = icmp eq ptr %60, null
  br i1 %61, label %._crit_edge82, label %.lr.ph81

.lr.ph81:                                         ; preds = %58
  %62 = tail call ptr @__errno_location() #12
  %63 = add nuw nsw i64 %indvars.iv, 1
  %64 = trunc nuw nsw i64 %63 to i32
  %65 = trunc nuw nsw i64 %63 to i32
  br label %66

66:                                               ; preds = %.lr.ph81, %98
  %67 = phi ptr [ %60, %.lr.ph81 ], [ %101, %98 ]
  %68 = phi ptr [ %59, %.lr.ph81 ], [ %100, %98 ]
  %.04579 = phi i32 [ 0, %.lr.ph81 ], [ %.146, %98 ]
  %.15278 = phi i64 [ %.05185, %.lr.ph81 ], [ %99, %98 ]
  store i32 0, ptr %62, align 4, !tbaa !13
  %69 = call i64 @strtol(ptr noundef %68, ptr noundef nonnull %2, i32 noundef 10) #8
  %70 = trunc i64 %69 to i32
  %71 = load ptr, ptr @x_space, align 8, !tbaa !5
  %72 = getelementptr inbounds %struct.feature_node, ptr %71, i64 %.15278
  store i32 %70, ptr %72, align 8, !tbaa !21
  %73 = load ptr, ptr %2, align 8, !tbaa !5
  %74 = icmp eq ptr %73, %68
  br i1 %74, label %79, label %75

75:                                               ; preds = %66
  %76 = load i32, ptr %62, align 4, !tbaa !13
  %.not63 = icmp eq i32 %76, 0
  br i1 %.not63, label %77, label %79

77:                                               ; preds = %75
  %78 = load i8, ptr %73, align 1, !tbaa !14
  %.not64 = icmp eq i8 %78, 0
  %.not65 = icmp slt i32 %.04579, %70
  %or.cond = select i1 %.not64, i1 %.not65, i1 false
  br i1 %or.cond, label %80, label %79

79:                                               ; preds = %77, %75, %66
  tail call void @exit_input_error(i32 noundef %64)
  br label %80

80:                                               ; preds = %77, %79
  %.146 = phi i32 [ %.04579, %79 ], [ %70, %77 ]
  store i32 0, ptr %62, align 4, !tbaa !13
  %81 = call double @strtod(ptr noundef nonnull %67, ptr noundef nonnull %2) #8
  %82 = load ptr, ptr @x_space, align 8, !tbaa !5
  %83 = getelementptr inbounds %struct.feature_node, ptr %82, i64 %.15278, i32 1
  store double %81, ptr %83, align 8, !tbaa !23
  %84 = load ptr, ptr %2, align 8, !tbaa !5
  %85 = icmp eq ptr %84, %67
  br i1 %85, label %97, label %86

86:                                               ; preds = %80
  %87 = load i32, ptr %62, align 4, !tbaa !13
  %.not66 = icmp eq i32 %87, 0
  br i1 %.not66, label %88, label %97

88:                                               ; preds = %86
  %89 = load i8, ptr %84, align 1, !tbaa !14
  %.not67 = icmp eq i8 %89, 0
  br i1 %.not67, label %98, label %90

90:                                               ; preds = %88
  %91 = tail call ptr @__ctype_b_loc() #12
  %92 = load ptr, ptr %91, align 8, !tbaa !5
  %93 = sext i8 %89 to i64
  %94 = getelementptr inbounds i16, ptr %92, i64 %93
  %95 = load i16, ptr %94, align 2, !tbaa !24
  %96 = and i16 %95, 8192
  %.not68 = icmp eq i16 %96, 0
  br i1 %.not68, label %97, label %98

97:                                               ; preds = %90, %86, %80
  tail call void @exit_input_error(i32 noundef %65)
  br label %98

98:                                               ; preds = %97, %90, %88
  %99 = add i64 %.15278, 1
  %100 = tail call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.19) #8
  %101 = tail call ptr @strtok(ptr noundef null, ptr noundef nonnull @.str.17) #8
  %102 = icmp eq ptr %101, null
  br i1 %102, label %._crit_edge82, label %66

._crit_edge82:                                    ; preds = %98, %58
  %.152.lcssa = phi i64 [ %.05185, %58 ], [ %99, %98 ]
  %.045.lcssa = phi i32 [ 0, %58 ], [ %.146, %98 ]
  %spec.select = tail call i32 @llvm.smax.i32(i32 %.045.lcssa, i32 %.087)
  %103 = load double, ptr getelementptr inbounds (i8, ptr @prob, i64 24), align 8, !tbaa !18
  %104 = fcmp ult double %103, 0.000000e+00
  %.pre = load ptr, ptr @x_space, align 8, !tbaa !5
  br i1 %104, label %108, label %105

105:                                              ; preds = %._crit_edge82
  %106 = add i64 %.152.lcssa, 1
  %107 = getelementptr inbounds %struct.feature_node, ptr %.pre, i64 %.152.lcssa, i32 1
  store double %103, ptr %107, align 8, !tbaa !23
  br label %108

108:                                              ; preds = %105, %._crit_edge82
  %.2 = phi i64 [ %106, %105 ], [ %.152.lcssa, %._crit_edge82 ]
  %109 = add i64 %.2, 1
  %110 = getelementptr inbounds %struct.feature_node, ptr %.pre, i64 %.2
  store i32 -1, ptr %110, align 8, !tbaa !21
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %111 = load i32, ptr @prob, align 8, !tbaa !9
  %112 = sext i32 %111 to i64
  %113 = icmp slt i64 %indvars.iv.next, %112
  br i1 %113, label %.lr.ph89, label %._crit_edge90, !llvm.loop !26

._crit_edge90:                                    ; preds = %108, %._crit_edge76
  %114 = phi ptr [ %34, %._crit_edge76 ], [ %.pre, %108 ]
  %115 = phi double [ %26, %._crit_edge76 ], [ %103, %108 ]
  %.051.lcssa = phi i64 [ 0, %._crit_edge76 ], [ %109, %108 ]
  %.0.lcssa = phi i32 [ 0, %._crit_edge76 ], [ %spec.select, %108 ]
  %.lcssa = phi i32 [ %27, %._crit_edge76 ], [ %111, %108 ]
  %116 = fcmp ult double %115, 0.000000e+00
  br i1 %116, label %147, label %117

117:                                              ; preds = %._crit_edge90
  %118 = add nuw nsw i32 %.0.lcssa, 1
  store i32 %118, ptr getelementptr inbounds (i8, ptr @prob, i64 4), align 4, !tbaa !27
  %119 = icmp sgt i32 %.lcssa, 1
  br i1 %119, label %.lr.ph96, label %._crit_edge97

.lr.ph96:                                         ; preds = %117
  %120 = load ptr, ptr getelementptr inbounds (i8, ptr @prob, i64 16), align 8, !tbaa !20
  %wide.trip.count = zext nneg i32 %.lcssa to i64
  %121 = add nsw i64 %wide.trip.count, -1
  %122 = add nsw i64 %wide.trip.count, -2
  %xtraiter = and i64 %121, 7
  %123 = icmp ult i64 %122, 7
  br i1 %123, label %._crit_edge97.loopexit.unr-lcssa, label %.lr.ph96.new

.lr.ph96.new:                                     ; preds = %.lr.ph96
  %unroll_iter = and i64 %121, -8
  %invariant.gep = getelementptr inbounds i8, ptr %120, i64 8
  %invariant.gep126 = getelementptr inbounds i8, ptr %120, i64 16
  %invariant.gep128 = getelementptr inbounds i8, ptr %120, i64 24
  %invariant.gep130 = getelementptr inbounds i8, ptr %120, i64 32
  %invariant.gep132 = getelementptr inbounds i8, ptr %120, i64 40
  %invariant.gep134 = getelementptr inbounds i8, ptr %120, i64 48
  %invariant.gep136 = getelementptr inbounds i8, ptr %120, i64 56
  br label %124

124:                                              ; preds = %124, %.lr.ph96.new
  %indvars.iv103 = phi i64 [ 1, %.lr.ph96.new ], [ %indvars.iv.next104.7, %124 ]
  %niter = phi i64 [ 0, %.lr.ph96.new ], [ %niter.next.7, %124 ]
  %125 = getelementptr inbounds ptr, ptr %120, i64 %indvars.iv103
  %126 = load ptr, ptr %125, align 8, !tbaa !5
  %127 = getelementptr inbounds i8, ptr %126, i64 -32
  store i32 %118, ptr %127, align 8, !tbaa !21
  %gep = getelementptr inbounds ptr, ptr %invariant.gep, i64 %indvars.iv103
  %128 = load ptr, ptr %gep, align 8, !tbaa !5
  %129 = getelementptr inbounds i8, ptr %128, i64 -32
  store i32 %118, ptr %129, align 8, !tbaa !21
  %gep127 = getelementptr inbounds ptr, ptr %invariant.gep126, i64 %indvars.iv103
  %130 = load ptr, ptr %gep127, align 8, !tbaa !5
  %131 = getelementptr inbounds i8, ptr %130, i64 -32
  store i32 %118, ptr %131, align 8, !tbaa !21
  %gep129 = getelementptr inbounds ptr, ptr %invariant.gep128, i64 %indvars.iv103
  %132 = load ptr, ptr %gep129, align 8, !tbaa !5
  %133 = getelementptr inbounds i8, ptr %132, i64 -32
  store i32 %118, ptr %133, align 8, !tbaa !21
  %gep131 = getelementptr inbounds ptr, ptr %invariant.gep130, i64 %indvars.iv103
  %134 = load ptr, ptr %gep131, align 8, !tbaa !5
  %135 = getelementptr inbounds i8, ptr %134, i64 -32
  store i32 %118, ptr %135, align 8, !tbaa !21
  %gep133 = getelementptr inbounds ptr, ptr %invariant.gep132, i64 %indvars.iv103
  %136 = load ptr, ptr %gep133, align 8, !tbaa !5
  %137 = getelementptr inbounds i8, ptr %136, i64 -32
  store i32 %118, ptr %137, align 8, !tbaa !21
  %gep135 = getelementptr inbounds ptr, ptr %invariant.gep134, i64 %indvars.iv103
  %138 = load ptr, ptr %gep135, align 8, !tbaa !5
  %139 = getelementptr inbounds i8, ptr %138, i64 -32
  store i32 %118, ptr %139, align 8, !tbaa !21
  %gep137 = getelementptr inbounds ptr, ptr %invariant.gep136, i64 %indvars.iv103
  %140 = load ptr, ptr %gep137, align 8, !tbaa !5
  %141 = getelementptr inbounds i8, ptr %140, i64 -32
  store i32 %118, ptr %141, align 8, !tbaa !21
  %indvars.iv.next104.7 = add nuw nsw i64 %indvars.iv103, 8
  %niter.next.7 = add i64 %niter, 8
  %niter.ncmp.7 = icmp eq i64 %niter.next.7, %unroll_iter
  br i1 %niter.ncmp.7, label %._crit_edge97.loopexit.unr-lcssa, label %124, !llvm.loop !28

._crit_edge97.loopexit.unr-lcssa:                 ; preds = %124, %.lr.ph96
  %indvars.iv103.unr = phi i64 [ 1, %.lr.ph96 ], [ %indvars.iv.next104.7, %124 ]
  %lcmp.mod.not = icmp eq i64 %xtraiter, 0
  br i1 %lcmp.mod.not, label %._crit_edge97, label %.epil.preheader

.epil.preheader:                                  ; preds = %._crit_edge97.loopexit.unr-lcssa, %.epil.preheader
  %indvars.iv103.epil = phi i64 [ %indvars.iv.next104.epil, %.epil.preheader ], [ %indvars.iv103.unr, %._crit_edge97.loopexit.unr-lcssa ]
  %epil.iter = phi i64 [ %epil.iter.next, %.epil.preheader ], [ 0, %._crit_edge97.loopexit.unr-lcssa ]
  %142 = getelementptr inbounds ptr, ptr %120, i64 %indvars.iv103.epil
  %143 = load ptr, ptr %142, align 8, !tbaa !5
  %144 = getelementptr inbounds i8, ptr %143, i64 -32
  store i32 %118, ptr %144, align 8, !tbaa !21
  %indvars.iv.next104.epil = add nuw nsw i64 %indvars.iv103.epil, 1
  %epil.iter.next = add i64 %epil.iter, 1
  %epil.iter.cmp.not = icmp eq i64 %epil.iter.next, %xtraiter
  br i1 %epil.iter.cmp.not, label %._crit_edge97, label %.epil.preheader, !llvm.loop !29

._crit_edge97:                                    ; preds = %._crit_edge97.loopexit.unr-lcssa, %.epil.preheader, %117
  %145 = getelementptr %struct.feature_node, ptr %114, i64 %.051.lcssa
  %146 = getelementptr i8, ptr %145, i64 -32
  store i32 %118, ptr %146, align 8, !tbaa !21
  br label %148

147:                                              ; preds = %._crit_edge90
  store i32 %.0.lcssa, ptr getelementptr inbounds (i8, ptr @prob, i64 4), align 4, !tbaa !27
  br label %148

148:                                              ; preds = %147, %._crit_edge97
  %149 = tail call i32 @fclose(ptr noundef nonnull %3)
  call void @llvm.lifetime.end.p0(i64 8, ptr nonnull %2) #8
  ret void
}

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

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

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

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

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

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

; Function Attrs: mustprogress nofree nounwind willreturn
declare double @strtod(ptr noundef readonly, ptr nocapture noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__errno_location() local_unnamed_addr #6

; Function Attrs: mustprogress nofree nounwind willreturn
declare i64 @strtol(ptr noundef readonly, ptr nocapture noundef, i32 noundef) local_unnamed_addr #5

; Function Attrs: mustprogress nofree nosync nounwind willreturn memory(none)
declare ptr @__ctype_b_loc() local_unnamed_addr #6

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

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

attributes #0 = { 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 #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 = { mustprogress nocallback nofree nosync nounwind willreturn memory(argmem: readwrite) }
attributes #4 = { mustprogress nofree nounwind willreturn allockind("alloc,uninitialized") allocsize(0) memory(inaccessiblemem: readwrite) "alloc-family"="malloc" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cmov,+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" }
attributes #5 = { 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 #6 = { mustprogress nofree nosync nounwind willreturn memory(none) "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 = { nocallback nofree nosync nounwind speculatable willreturn memory(none) }
attributes #8 = { nounwind }
attributes #9 = { cold nounwind }
attributes #10 = { noreturn nounwind }
attributes #11 = { nounwind allocsize(0) }
attributes #12 = { nounwind willreturn memory(none) }

!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, !11, i64 0}
!10 = !{!"problem", !11, i64 0, !11, i64 4, !6, i64 8, !6, i64 16, !12, i64 24}
!11 = !{!"int", !7, i64 0}
!12 = !{!"double", !7, i64 0}
!13 = !{!11, !11, i64 0}
!14 = !{!7, !7, i64 0}
!15 = distinct !{!15, !16}
!16 = !{!"llvm.loop.mustprogress"}
!17 = !{!12, !12, i64 0}
!18 = !{!10, !12, i64 24}
!19 = !{!10, !6, i64 8}
!20 = !{!10, !6, i64 16}
!21 = !{!22, !11, i64 0}
!22 = !{!"feature_node", !11, i64 0, !12, i64 8}
!23 = !{!22, !12, i64 8}
!24 = !{!25, !25, i64 0}
!25 = !{!"short", !7, i64 0}
!26 = distinct !{!26, !16}
!27 = !{!10, !11, i64 4}
!28 = distinct !{!28, !16}
!29 = distinct !{!29, !30}
!30 = !{!"llvm.loop.unroll.disable"}


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