; LLVM IR from CLASS-SZ/class_sz :: class-sz/tools (parser)

; 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.file_content = type { ptr, i32, ptr, ptr, ptr }

@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@__func__.parser_read_list_of_doubles = external hidden unnamed_addr constant [28 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [54 x i8], align 1

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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) #1

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

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

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

; Function Attrs: nounwind willreturn memory(read)
declare ptr @strchr(ptr noundef, i32 noundef) #4

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

; Function Attrs: nounwind willreturn memory(read)
declare i32 @strcmp(ptr noundef, ptr noundef) #4

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

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

28:                                               ; preds = %47, %6
  %29 = load i32, ptr %14, align 4, !tbaa !9
  %30 = load ptr, ptr %8, align 8, !tbaa !5
  %31 = getelementptr inbounds %struct.file_content, ptr %30, i32 0, i32 1
  %32 = load i32, ptr %31, align 8, !tbaa !11
  %33 = icmp slt i32 %29, %32
  br i1 %33, label %34, label %45

34:                                               ; preds = %28
  %35 = load ptr, ptr %8, align 8, !tbaa !5
  %36 = getelementptr inbounds %struct.file_content, ptr %35, i32 0, i32 2
  %37 = load ptr, ptr %36, align 8, !tbaa !13
  %38 = load i32, ptr %14, align 4, !tbaa !9
  %39 = sext i32 %38 to i64
  %40 = getelementptr inbounds [1024 x i8], ptr %37, i64 %39
  %41 = getelementptr inbounds [1024 x i8], ptr %40, i64 0, i64 0
  %42 = load ptr, ptr %9, align 8, !tbaa !5
  %43 = call i32 @strcmp(ptr noundef %41, ptr noundef %42) #7
  %44 = icmp ne i32 %43, 0
  br label %45

45:                                               ; preds = %34, %28
  %46 = phi i1 [ false, %28 ], [ %44, %34 ]
  br i1 %46, label %47, label %50

47:                                               ; preds = %45
  %48 = load i32, ptr %14, align 4, !tbaa !9
  %49 = add nsw i32 %48, 1
  store i32 %49, ptr %14, align 4, !tbaa !9
  br label %28, !llvm.loop !14

50:                                               ; preds = %45
  %51 = load i32, ptr %14, align 4, !tbaa !9
  %52 = load ptr, ptr %8, align 8, !tbaa !5
  %53 = getelementptr inbounds %struct.file_content, ptr %52, i32 0, i32 1
  %54 = load i32, ptr %53, align 8, !tbaa !11
  %55 = icmp eq i32 %51, %54
  br i1 %55, label %56, label %57

56:                                               ; preds = %50
  store i32 0, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %199

57:                                               ; preds = %50
  store i32 0, ptr %15, align 4, !tbaa !9
  %58 = load ptr, ptr %8, align 8, !tbaa !5
  %59 = getelementptr inbounds %struct.file_content, ptr %58, i32 0, i32 3
  %60 = load ptr, ptr %59, align 8, !tbaa !16
  %61 = load i32, ptr %14, align 4, !tbaa !9
  %62 = sext i32 %61 to i64
  %63 = getelementptr inbounds [1024 x i8], ptr %60, i64 %62
  %64 = getelementptr inbounds [1024 x i8], ptr %63, i64 0, i64 0
  store ptr %64, ptr %16, align 8, !tbaa !5
  br label %65

65:                                               ; preds = %72, %57
  %66 = load i32, ptr %15, align 4, !tbaa !9
  %67 = add nsw i32 %66, 1
  store i32 %67, ptr %15, align 4, !tbaa !9
  %68 = load ptr, ptr %16, align 8, !tbaa !5
  %69 = call ptr @strchr(ptr noundef %68, i32 noundef 44) #7
  store ptr %69, ptr %17, align 8, !tbaa !5
  %70 = load ptr, ptr %17, align 8, !tbaa !5
  %71 = getelementptr inbounds i8, ptr %70, i64 1
  store ptr %71, ptr %16, align 8, !tbaa !5
  br label %72

72:                                               ; preds = %65
  %73 = load ptr, ptr %17, align 8, !tbaa !5
  %74 = icmp ne ptr %73, null
  br i1 %74, label %65, label %75, !llvm.loop !17

75:                                               ; preds = %72
  %76 = load i32, ptr %15, align 4, !tbaa !9
  %77 = load ptr, ptr %10, align 8, !tbaa !5
  store i32 %76, ptr %77, align 4, !tbaa !9
  %78 = load ptr, ptr %10, align 8, !tbaa !5
  %79 = load i32, ptr %78, align 4, !tbaa !9
  %80 = sext i32 %79 to i64
  %81 = mul i64 %80, 8
  %82 = call noalias ptr @malloc(i64 noundef %81) #8
  store ptr %82, ptr %19, align 8, !tbaa !5
  %83 = load ptr, ptr %19, align 8, !tbaa !5
  %84 = icmp eq ptr %83, null
  br i1 %84, label %85, label %95

85:                                               ; preds = %75
  call void @llvm.lifetime.start.p0(i64 4, ptr %21) #6
  %86 = load ptr, ptr %10, align 8, !tbaa !5
  %87 = load i32, ptr %86, align 4, !tbaa !9
  %88 = sext i32 %87 to i64
  %89 = mul i64 %88, 8
  %90 = trunc i64 %89 to i32
  store i32 %90, ptr %21, align 4, !tbaa !9
  call void @llvm.lifetime.start.p0(i64 2048, ptr %22) #6
  %91 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  %92 = load i32, ptr %21, align 4, !tbaa !9
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %91, ptr noundef @.str.11, ptr noundef @.str.28, i32 noundef %92)
  %93 = load ptr, ptr %13, align 8, !tbaa !5
  %94 = getelementptr inbounds [2048 x i8], ptr %22, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %93, ptr noundef @.str.4, ptr noundef @__func__.parser_read_list_of_doubles, i32 noundef 424, ptr noundef %94)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %22) #6
  store i32 1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  call void @llvm.lifetime.end.p0(i64 4, ptr %21) #6
  br label %199

95:                                               ; preds = %75
  %96 = load ptr, ptr %19, align 8, !tbaa !5
  %97 = load ptr, ptr %11, align 8, !tbaa !5
  store ptr %96, ptr %97, align 8, !tbaa !5
  store i32 0, ptr %15, align 4, !tbaa !9
  %98 = load ptr, ptr %8, align 8, !tbaa !5
  %99 = getelementptr inbounds %struct.file_content, ptr %98, i32 0, i32 3
  %100 = load ptr, ptr %99, align 8, !tbaa !16
  %101 = load i32, ptr %14, align 4, !tbaa !9
  %102 = sext i32 %101 to i64
  %103 = getelementptr inbounds [1024 x i8], ptr %100, i64 %102
  %104 = getelementptr inbounds [1024 x i8], ptr %103, i64 0, i64 0
  store ptr %104, ptr %16, align 8, !tbaa !5
  br label %105

105:                                              ; preds = %154, %95
  %106 = load i32, ptr %15, align 4, !tbaa !9
  %107 = add nsw i32 %106, 1
  store i32 %107, ptr %15, align 4, !tbaa !9
  %108 = load ptr, ptr %16, align 8, !tbaa !5
  %109 = call ptr @strchr(ptr noundef %108, i32 noundef 44) #7
  store ptr %109, ptr %17, align 8, !tbaa !5
  %110 = load ptr, ptr %17, align 8, !tbaa !5
  %111 = icmp eq ptr %110, null
  br i1 %111, label %112, label %116

112:                                              ; preds = %105
  %113 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %114 = load ptr, ptr %16, align 8, !tbaa !5
  %115 = call ptr @strcpy(ptr noundef %113, ptr noundef %114) #6
  br label %131

116:                                              ; preds = %105
  %117 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %118 = load ptr, ptr %16, align 8, !tbaa !5
  %119 = load ptr, ptr %17, align 8, !tbaa !5
  %120 = load ptr, ptr %16, align 8, !tbaa !5
  %121 = ptrtoint ptr %119 to i64
  %122 = ptrtoint ptr %120 to i64
  %123 = sub i64 %121, %122
  %124 = call ptr @strncpy(ptr noundef %117, ptr noundef %118, i64 noundef %123) #6
  %125 = load ptr, ptr %17, align 8, !tbaa !5
  %126 = load ptr, ptr %16, align 8, !tbaa !5
  %127 = ptrtoint ptr %125 to i64
  %128 = ptrtoint ptr %126 to i64
  %129 = sub i64 %127, %128
  %130 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 %129
  store i8 0, ptr %130, align 1, !tbaa !18
  br label %131

131:                                              ; preds = %116, %112
  %132 = getelementptr inbounds [1024 x i8], ptr %18, i64 0, i64 0
  %133 = load ptr, ptr %19, align 8, !tbaa !5
  %134 = load i32, ptr %15, align 4, !tbaa !9
  %135 = sub nsw i32 %134, 1
  %136 = sext i32 %135 to i64
  %137 = getelementptr inbounds double, ptr %133, i64 %136
  %138 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef %132, ptr noundef @.str.26, ptr noundef %137) #6
  %139 = icmp ne i32 %138, 1
  br i1 %139, label %140, label %151

140:                                              ; preds = %131
  call void @llvm.lifetime.start.p0(i64 2048, ptr %23) #6
  %141 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  %142 = load i32, ptr %15, align 4, !tbaa !9
  %143 = load ptr, ptr %9, align 8, !tbaa !5
  %144 = load ptr, ptr %8, align 8, !tbaa !5
  %145 = getelementptr inbounds %struct.file_content, ptr %144, i32 0, i32 0
  %146 = load ptr, ptr %145, align 8, !tbaa !19
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %141, ptr noundef @.str.29, i32 noundef %142, ptr noundef %143, ptr noundef %146)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %24) #6
  %147 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  %148 = getelementptr inbounds [2048 x i8], ptr %23, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %147, ptr noundef @.str.8, ptr noundef @.str.30, ptr noundef %148)
  %149 = load ptr, ptr %13, align 8, !tbaa !5
  %150 = getelementptr inbounds [2048 x i8], ptr %24, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %149, ptr noundef @.str.4, ptr noundef @__func__.parser_read_list_of_doubles, i32 noundef 445, ptr noundef %150)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %24) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %23) #6
  store i32 1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %199

151:                                              ; preds = %131
  %152 = load ptr, ptr %17, align 8, !tbaa !5
  %153 = getelementptr inbounds i8, ptr %152, i64 1
  store ptr %153, ptr %16, align 8, !tbaa !5
  br label %154

154:                                              ; preds = %151
  %155 = load ptr, ptr %17, align 8, !tbaa !5
  %156 = icmp ne ptr %155, null
  br i1 %156, label %105, label %157, !llvm.loop !20

157:                                              ; preds = %154
  %158 = load ptr, ptr %12, align 8, !tbaa !5
  store i32 1, ptr %158, align 4, !tbaa !9
  %159 = load ptr, ptr %8, align 8, !tbaa !5
  %160 = getelementptr inbounds %struct.file_content, ptr %159, i32 0, i32 4
  %161 = load ptr, ptr %160, align 8, !tbaa !21
  %162 = load i32, ptr %14, align 4, !tbaa !9
  %163 = sext i32 %162 to i64
  %164 = getelementptr inbounds i16, ptr %161, i64 %163
  store i16 1, ptr %164, align 2, !tbaa !22
  %165 = load i32, ptr %14, align 4, !tbaa !9
  %166 = add nsw i32 %165, 1
  store i32 %166, ptr %15, align 4, !tbaa !9
  br label %167

167:                                              ; preds = %195, %157
  %168 = load i32, ptr %15, align 4, !tbaa !9
  %169 = load ptr, ptr %8, align 8, !tbaa !5
  %170 = getelementptr inbounds %struct.file_content, ptr %169, i32 0, i32 1
  %171 = load i32, ptr %170, align 8, !tbaa !11
  %172 = icmp slt i32 %168, %171
  br i1 %172, label %173, label %198

173:                                              ; preds = %167
  %174 = load ptr, ptr %8, align 8, !tbaa !5
  %175 = getelementptr inbounds %struct.file_content, ptr %174, i32 0, i32 2
  %176 = load ptr, ptr %175, align 8, !tbaa !13
  %177 = load i32, ptr %15, align 4, !tbaa !9
  %178 = sext i32 %177 to i64
  %179 = getelementptr inbounds [1024 x i8], ptr %176, i64 %178
  %180 = getelementptr inbounds [1024 x i8], ptr %179, i64 0, i64 0
  %181 = load ptr, ptr %9, align 8, !tbaa !5
  %182 = call i32 @strcmp(ptr noundef %180, ptr noundef %181) #7
  %183 = icmp eq i32 %182, 0
  br i1 %183, label %184, label %194

184:                                              ; preds = %173
  call void @llvm.lifetime.start.p0(i64 2048, ptr %25) #6
  %185 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  %186 = load ptr, ptr %9, align 8, !tbaa !5
  %187 = load ptr, ptr %8, align 8, !tbaa !5
  %188 = getelementptr inbounds %struct.file_content, ptr %187, i32 0, i32 0
  %189 = load ptr, ptr %188, align 8, !tbaa !19
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %185, ptr noundef @.str.24, ptr noundef %186, ptr noundef %189)
  call void @llvm.lifetime.start.p0(i64 2048, ptr %26) #6
  %190 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  %191 = getelementptr inbounds [2048 x i8], ptr %25, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %190, ptr noundef @.str.8, ptr noundef @.str.25, ptr noundef %191)
  %192 = load ptr, ptr %13, align 8, !tbaa !5
  %193 = getelementptr inbounds [2048 x i8], ptr %26, i64 0, i64 0
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %192, ptr noundef @.str.4, ptr noundef @__func__.parser_read_list_of_doubles, i32 noundef 461, ptr noundef %193)
  call void @llvm.lifetime.end.p0(i64 2048, ptr %26) #6
  call void @llvm.lifetime.end.p0(i64 2048, ptr %25) #6
  store i32 1, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %199

194:                                              ; preds = %173
  br label %195

195:                                              ; preds = %194
  %196 = load i32, ptr %15, align 4, !tbaa !9
  %197 = add nsw i32 %196, 1
  store i32 %197, ptr %15, align 4, !tbaa !9
  br label %167, !llvm.loop !24

198:                                              ; preds = %167
  store i32 0, ptr %7, align 4
  store i32 1, ptr %20, align 4
  br label %199

199:                                              ; preds = %198, %184, %140, %85, %56
  call void @llvm.lifetime.end.p0(i64 8, ptr %19) #6
  call void @llvm.lifetime.end.p0(i64 1024, ptr %18) #6
  call void @llvm.lifetime.end.p0(i64 8, ptr %17) #6
  call void @llvm.lifetime.end.p0(i64 8, 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
  %200 = load i32, ptr %7, align 4
  ret i32 %200
}

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

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

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


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

@.str.4 = external hidden unnamed_addr constant [13 x i8], align 1
@.str.8 = external hidden unnamed_addr constant [27 x i8], align 1
@.str.11 = external hidden unnamed_addr constant [35 x i8], align 1
@.str.24 = external hidden unnamed_addr constant [47 x i8], align 1
@.str.25 = external hidden unnamed_addr constant [31 x i8], align 1
@.str.26 = external hidden unnamed_addr constant [4 x i8], align 1
@.str.28 = external hidden unnamed_addr constant [5 x i8], align 1
@__func__.parser_read_list_of_doubles = external hidden unnamed_addr constant [28 x i8], align 1
@.str.29 = external hidden unnamed_addr constant [67 x i8], align 1
@.str.30 = external hidden unnamed_addr constant [54 x i8], align 1

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

declare void @class_protect_sprintf(ptr noundef, ptr noundef, ...) local_unnamed_addr #1

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

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

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

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

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

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

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

; Function Attrs: nounwind uwtable
define dso_local range(i32 0, 2) i32 @parser_read_list_of_doubles(ptr nocapture noundef readonly %0, ptr noundef %1, ptr nocapture noundef writeonly %2, ptr nocapture noundef writeonly %3, ptr nocapture noundef writeonly %4, ptr noundef %5) local_unnamed_addr #6 {
  %7 = alloca [1024 x i8], align 16
  %8 = alloca [2048 x i8], align 16
  %9 = alloca [2048 x i8], align 16
  %10 = alloca [2048 x i8], align 16
  %11 = alloca [2048 x i8], align 16
  %12 = alloca [2048 x i8], align 16
  call void @llvm.lifetime.start.p0(i64 1024, ptr nonnull %7) #7
  store i32 0, ptr %4, align 4, !tbaa !5
  %13 = getelementptr inbounds i8, ptr %0, i64 8
  %14 = load i32, ptr %13, align 8, !tbaa !9
  %15 = icmp sgt i32 %14, 0
  br i1 %15, label %.lr.ph, label %.critedge

.lr.ph:                                           ; preds = %6
  %16 = getelementptr inbounds i8, ptr %0, i64 16
  %17 = load ptr, ptr %16, align 8, !tbaa !12
  %wide.trip.count = zext nneg i32 %14 to i64
  br label %18

18:                                               ; preds = %.lr.ph, %21
  %indvars.iv = phi i64 [ 0, %.lr.ph ], [ %indvars.iv.next, %21 ]
  %19 = getelementptr inbounds [1024 x i8], ptr %17, i64 %indvars.iv
  %20 = tail call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %19, ptr noundef nonnull dereferenceable(1) %1) #8
  %.not = icmp eq i32 %20, 0
  br i1 %.not, label %.critedge.loopexit, label %21

21:                                               ; preds = %18
  %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
  %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
  br i1 %exitcond.not, label %.loopexit, label %18, !llvm.loop !13

.critedge.loopexit:                               ; preds = %18
  %22 = trunc nuw nsw i64 %indvars.iv to i32
  br label %.critedge

.critedge:                                        ; preds = %.critedge.loopexit, %6
  %.056.lcssa = phi i32 [ 0, %6 ], [ %22, %.critedge.loopexit ]
  %23 = icmp eq i32 %.056.lcssa, %14
  br i1 %23, label %.loopexit, label %24

24:                                               ; preds = %.critedge
  %25 = getelementptr inbounds i8, ptr %0, i64 24
  %26 = load ptr, ptr %25, align 8, !tbaa !15
  %27 = zext i32 %.056.lcssa to i64
  %28 = getelementptr inbounds [1024 x i8], ptr %26, i64 %27
  br label %29

29:                                               ; preds = %29, %24
  %.058 = phi i32 [ 0, %24 ], [ %30, %29 ]
  %.057 = phi ptr [ %28, %24 ], [ %32, %29 ]
  %30 = add nuw nsw i32 %.058, 1
  %31 = tail call ptr @strchr(ptr noundef nonnull dereferenceable(1) %.057, i32 noundef 44) #8
  %32 = getelementptr inbounds i8, ptr %31, i64 1
  %.not62 = icmp eq ptr %31, null
  br i1 %.not62, label %33, label %29, !llvm.loop !16

33:                                               ; preds = %29
  store i32 %30, ptr %2, align 4, !tbaa !5
  %34 = zext nneg i32 %30 to i64
  %35 = shl nuw nsw i64 %34, 3
  %36 = tail call noalias ptr @malloc(i64 noundef %35) #9
  %37 = icmp eq ptr %36, null
  br i1 %37, label %38, label %40

38:                                               ; preds = %33
  %39 = shl i32 %30, 3
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %8) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %8, ptr noundef nonnull @.str.11, ptr noundef nonnull @.str.28, i32 noundef %39) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %5, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_read_list_of_doubles, i32 noundef 424, ptr noundef nonnull %8) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %8) #7
  br label %.loopexit

40:                                               ; preds = %33
  store ptr %36, ptr %3, align 8, !tbaa !17
  %41 = load ptr, ptr %25, align 8, !tbaa !15
  %42 = getelementptr inbounds [1024 x i8], ptr %41, i64 %27
  br label %43

43:                                               ; preds = %60, %40
  %indvars.iv77 = phi i64 [ %indvars.iv.next78, %60 ], [ 0, %40 ]
  %.1 = phi ptr [ %61, %60 ], [ %42, %40 ]
  %indvars.iv.next78 = add nuw nsw i64 %indvars.iv77, 1
  %44 = call ptr @strchr(ptr noundef nonnull dereferenceable(1) %.1, i32 noundef 44) #8
  %45 = icmp eq ptr %44, null
  br i1 %45, label %46, label %48

46:                                               ; preds = %43
  %47 = call ptr @strcpy(ptr noundef nonnull dereferenceable(1) %7, ptr noundef nonnull dereferenceable(1) %.1) #7
  br label %54

48:                                               ; preds = %43
  %49 = ptrtoint ptr %44 to i64
  %50 = ptrtoint ptr %.1 to i64
  %51 = sub i64 %49, %50
  %52 = call ptr @strncpy(ptr noundef nonnull %7, ptr noundef %.1, i64 noundef %51) #7
  %53 = getelementptr inbounds [1024 x i8], ptr %7, i64 0, i64 %51
  store i8 0, ptr %53, align 1, !tbaa !18
  br label %54

54:                                               ; preds = %48, %46
  %55 = getelementptr inbounds double, ptr %36, i64 %indvars.iv77
  %56 = call i32 (ptr, ptr, ...) @__isoc99_sscanf(ptr noundef nonnull %7, ptr noundef nonnull @.str.26, ptr noundef nonnull %55) #7
  %.not63 = icmp eq i32 %56, 1
  br i1 %.not63, label %60, label %57

57:                                               ; preds = %54
  %58 = trunc nuw i64 %indvars.iv.next78 to i32
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %9) #7
  %59 = load ptr, ptr %0, align 8, !tbaa !19
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %9, ptr noundef nonnull @.str.29, i32 noundef %58, ptr noundef %1, ptr noundef %59) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %10) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %10, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.30, ptr noundef nonnull %9) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %5, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_read_list_of_doubles, i32 noundef 445, ptr noundef nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %10) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %9) #7
  br label %.loopexit

60:                                               ; preds = %54
  %61 = getelementptr inbounds i8, ptr %44, i64 1
  br i1 %45, label %62, label %43, !llvm.loop !20

62:                                               ; preds = %60
  store i32 1, ptr %4, align 4, !tbaa !5
  %63 = getelementptr inbounds i8, ptr %0, i64 32
  %64 = load ptr, ptr %63, align 8, !tbaa !21
  %65 = getelementptr inbounds i16, ptr %64, i64 %27
  store i16 1, ptr %65, align 2, !tbaa !22
  %66 = load i32, ptr %13, align 8, !tbaa !9
  %67 = getelementptr inbounds i8, ptr %0, i64 16
  br label %68

68:                                               ; preds = %71, %62
  %indvars.iv80 = phi i64 [ %indvars.iv.next81, %71 ], [ %27, %62 ]
  %indvars.iv.next81 = add nuw nsw i64 %indvars.iv80, 1
  %69 = trunc nuw i64 %indvars.iv.next81 to i32
  %70 = icmp sgt i32 %66, %69
  br i1 %70, label %71, label %.loopexit

71:                                               ; preds = %68
  %72 = load ptr, ptr %67, align 8, !tbaa !12
  %73 = getelementptr inbounds [1024 x i8], ptr %72, i64 %indvars.iv.next81
  %74 = call i32 @strcmp(ptr noundef nonnull dereferenceable(1) %73, ptr noundef nonnull dereferenceable(1) %1) #8
  %75 = icmp eq i32 %74, 0
  br i1 %75, label %76, label %68, !llvm.loop !24

76:                                               ; preds = %71
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %11) #7
  %77 = load ptr, ptr %0, align 8, !tbaa !19
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %11, ptr noundef nonnull @.str.24, ptr noundef %1, ptr noundef %77) #7
  call void @llvm.lifetime.start.p0(i64 2048, ptr nonnull %12) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef nonnull %12, ptr noundef nonnull @.str.8, ptr noundef nonnull @.str.25, ptr noundef nonnull %11) #7
  call void (ptr, ptr, ...) @class_protect_sprintf(ptr noundef %5, ptr noundef nonnull @.str.4, ptr noundef nonnull @__func__.parser_read_list_of_doubles, i32 noundef 461, ptr noundef nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %12) #7
  call void @llvm.lifetime.end.p0(i64 2048, ptr nonnull %11) #7
  br label %.loopexit

.loopexit:                                        ; preds = %21, %68, %.critedge, %76, %57, %38
  %.0 = phi i32 [ 1, %38 ], [ 1, %57 ], [ 1, %76 ], [ 0, %.critedge ], [ 0, %68 ], [ 0, %21 ]
  call void @llvm.lifetime.end.p0(i64 1024, ptr nonnull %7) #7
  ret i32 %.0
}

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

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

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


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